0
我是Python的新手,我無法弄清楚這段代碼有什麼問題。除了不是打印出我的打印語句,而是我得到這個錯誤,「」和你最喜歡的顏色是%s「)(名稱,任務,顏色) TypeError:'NoneType'對象不可調用」下面是我的代碼。TypeError:NoneType對象不可調用
name = input("What is your name?")
quest = input("What is your quest?")
color = input("What is your favorite color?")
print ("Ah, so your name is %s, your quest is %s,"
"and your favorite color is %s")(name, quest, color)
我有見過的+1最好的解釋 – mojo706 2017-10-11 19:18:28