Discuss / Python / 练习、、、、

练习、、、、

Topic source

林林1292

#1 Created at ... [Delete] [Delete and Lock User]

L = [] n=1 while n<=99: L.append(n) n +=2

print(L)

i=0 half=[] while i<len(L)/2: half.append(L[i]) i +=1 print(half) print(len(half))


  • 1

Reply