运行:print('sum([1, 2, 3]) =', sum([1, 2, 3])) 提示:Traceback (most recent call last): File "<pyshell#10>", line 1, in <module> print('sum([1, 2, 3]) =', sum([1, 2, 3])) TypeError: 'int' object is not callable 尝试解决:通过help(sum) 查看了sum的使用确实是这样的啊,怎么会提示不可调用?
我复制的你的,是对的呀
Sign in to make a reply
yzc18772960072
运行:print('sum([1, 2, 3]) =', sum([1, 2, 3])) 提示:Traceback (most recent call last): File "<pyshell#10>", line 1, in <module> print('sum([1, 2, 3]) =', sum([1, 2, 3])) TypeError: 'int' object is not callable 尝试解决:通过help(sum) 查看了sum的使用确实是这样的啊,怎么会提示不可调用?