【发布时间】:2014-04-14 13:29:38
【问题描述】:
python idle 在 print() 函数中抛出错误我不知道为什么这里的代码..
password = "cow"
name = input()
input("MR PENGUIN: hello there i am Mr Penguin what is your name? ")
input("well, hello there"+name+"Tell me your password")
input("You: my password is, ")
input("MR PENGUIN: im little defh could you repeat that? ")
input("YOU: my password is, "
print("PC POLICE: STOP! dont ever trust penguins with your data becuase he just told every one that your password is "+ password)
input("Press Enter To Exit")
【问题讨论】:
-
哦,拜托。您在上一行中缺少右括号..
-
@thefourtheye:这对于新手来说总是令人惊讶的事情;您需要查看上一行的错误。
标签: python macos printing syntax-error