我對此很新,所以我不知道爲什麼這是錯誤的。請幫忙。我不知道爲什麼我的Python代碼不能正常工作
謝謝,如果你幫忙。
print("%s is a very %s person. They usually spend all their time %s.") % input("Please enter a name: "), input("Please enter an adjective: "), input("Please eneter an ing verb: ")
這是錯誤我得到:
Traceback (most recent call last):
File "C:\Python34\firstthingy.py", line 1, in <module>
print("%s is a very %s person. They usually spend all their time %s.") % input("Please enter a name: "), input("Please enter an adjective: "), input("Please eneter an ing verb: ")
TypeError: unsupported operand type(s) for %: 'NoneType' and 'str'