close
一個 while 迴圈,使用 Input來控制停止
====================================
import time
stop = 1
while(stop != 0) : # stop = 0 迴圈會停止
time.sleep(0.5)
stop = int(input("input:")) #
if stop == 0:
pass
else:
print("Go on")
print("End")
====================================
全站熱搜