import time
a=[1,2,3,4,5,6]
while True:
i=0
t=a[0]
while i<len(a)-1:
a[i]=a[i+1]
i+=1
a[len(a)-1]=t
print(a)
time.sleep(2)
传送带简易形式
最新推荐文章于 2024-04-30 13:04:04 发布
import time
a=[1,2,3,4,5,6]
while True:
i=0
t=a[0]
while i<len(a)-1:
a[i]=a[i+1]
i+=1
a[len(a)-1]=t
print(a)
time.sleep(2)