1
我目前在python3中遇到了一個問題。爲什麼我得到錯誤。 TypeError:不支持的操作數類型爲+:'int'和'str'?
我最近遇到的錯誤: 類型錯誤:不支持的操作數類型(S)爲+:「詮釋」和「海峽」
我不知道這個問題可能是因此任何幫助將是非常讚賞。
預先感謝
lengths = input("Enter the Lengths of the Sides of the Shape Seperated by commas: ").split(',')
answer = sum(lengths)
print("+".join(lengths) + "= %s" % (answer))