我对此很新,所以我不知道为什么这是错误的。请帮忙。我不知道为什么我的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'