我的代码有问题,运行时出现语法错误“打印”
word1 = input("Words: ")
characters = len(word1)
listOfStuff = str(word1)
strip = ""
x = 1
while not characters > 140 - 11:
word = input("Words: ")
if characters <= 140 - 11:
listOfStuff = listOfStuff + ' ' + str(word)
characters = characters + len(word) - 1
elif characters > 140 - 11:
strip = len(word)
break
finalLength = len(listOfStuff)
print(listOfStuff.rstrip(strip)
print(finalLength)
我什么时候做错了?