小编Arg*_*gos的帖子

内置功能不适用于Spyder

我正在尝试使用Python 3,6中的max函数:

print('Maximum is:', max(1, 3, 2, 5, 4))
Run Code Online (Sandbox Code Playgroud)

结果是

  File "E:/ProgramyRobione/untitled1.py", line 2, in <module>
    print('Maximum is:', max(1, 3, 2, 5, 4))

TypeError: 'int' object is not callable
Run Code Online (Sandbox Code Playgroud)

我正在使用Spyder,那条线就是代码应该做的.

python error-handling function python-3.x spyder

4
推荐指数
1
解决办法
812
查看次数

标签 统计

error-handling ×1

function ×1

python ×1

python-3.x ×1

spyder ×1