Discuss / Python / for in 循环。

for in 循环。

Topic source
n = range(50)
l = list(n)
l2=[]
for x in l:
    l2.append(x*2+1)
print(l2)

  • 1

Reply