📜  python代码示例中带有数字的序列

📅  最后修改于: 2022-03-11 14:46:04.621000             🧑  作者: Mango

代码示例1
step = 2
vec = [1,2,3,4,5]
vec2 = [i/step for i in range(len(vec))]

# vec2 = [0.5, 1, 1.5, 2, 2.5]