qwb1997 发表于 2022-1-21 15:33:49

sum()函数在jupyternotebook中报错

s =
sum(s)

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-463-3ee4e54dcf40> in <module>
      1 s =
----> 2 sum(s)

TypeError: 'int' object is not callable

qwb1997 发表于 2022-1-21 15:36:54

知道了之前定义过一个sum函数
页: [1]
查看完整版本: sum()函数在jupyternotebook中报错