python中while循环这种现象什么原因?
count = 0 print(count) while 1<2: count += 1 print(count)
现象:为什么直接从13w开始了
因为电脑计数太快了,前面你根本看不到,改成这样你就明白了
count = 0 print(count) while 1<2: count += 1 if count<100: print(count) else: break