如何使Python中的时间延迟?我想知道如何在Python脚本中放置时间延迟。
3 回答
![?](http://img1.sycdn.imooc.com/545863c10001865402200220-100-100.jpg)
陪伴而非守候
TA贡献1757条经验 获得超8个赞
import time time.sleep(5) # Delays for 5 seconds. You can also use a float value.
import timewhile True: print("This prints once a minute.") time.sleep(60) # Delay for 1 minute (60 seconds).
添加回答
举报
0/150
提交
取消