猿问

python 小问题?

n=input
n=n+1
print (n)
TypeError: unsupported operand type(s) for +: 'builtin_function_or_method' and 'int'

慕尼黑8549860
浏览 606回答 2
2回答

九州编程

n = n+1有问题n是方法引用,不能使用+操作!
随时随地看视频慕课网APP

相关分类

Python
我要回答