i=0 while i < 10: print(i) i+=1 i=0 while i < 10: print(i) i=i+1 运行结果是一样的。 转载于:https://blog.51cto.com/chaorenhuifei/1711180