我正在使用 python 3.3,并且正在尝试使用 %s 函数,但出现错误。我放
print("you're a %s man") % (input("put an adjective"))
然后我在模块中运行它并得到这个
you're a %s man
put an adjectivefunny
Traceback (most recent call last):
File "C:\Users\Me\Desktop\coding\mie.py", line 1, in <module>
print("you're a %s man") % (input("put an adjective"))
TypeError: unsupported operand type(s) for %: 'NoneType' and 'str'