我的程序运行良好,但有时在启动时它会停止?或崩溃?并立即重新加载。我不知道它为什么这样做。这不是在误会我。它只是在我添加了睡眠功能后才开始的。
import time
print ( "loading cakes.. please wait")
time.sleep(3)
print ("cakes now loaded - enjoy your program")
time.sleep(1)
print ( "Enter a People Name" )
name = (input())
print ( "Enter Years of a People, I'll tell you the Years in Doggo : ", end = "")
ppl = float(input())
doggo = ppl * 7
print (name, "Is a People, with a People Years of", ppl, )
print (name,"'s Age in People Years is", ppl, " and is equal to", doggo, "Doggo Years " )
time.sleep(2)
print("(・・;) you're so old")
我认为这并不重要,但我们将不胜感激。