📜  如何暂停 Python 脚本 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:40.804000             🧑  作者: Mango

代码示例3
import time

time.sleep(amount of seconds you want to pause the script for)


Example : 
  
import time
secondstogo = input("How much seconds do you want to wait? : ")
print(f"waiting {secondstogo} seconds")
time.sleep(secondstogo)