“我想写下一个笑话程序,类似的外观看起来像是简单的用户输入”,但结尾就像炸弹一样。但这是行不通的。为您提供信息,我是python中的一只鲜血新手。
我尝试了一些If-elif-else参数,但是大多数参数给了我语法错误的输出。
print("Who did you called?")
name=input()
if name =="James":
print("Welcome back Sire!")
elif: def countdown(n) :
while n > 0:
print(n)
break
while n==n-1:
if n==0:
print("krawumm!")
else: print("Well done, You aren´t alive!")
else:
print("I didn´t know you, but come here and tell me, who you are!")
print("And pls. don´t forget to turned of the mines beneave your feet")
countdown(10)
语法错误/语法无效