Discuss / Python / 我把函数赋值之后就不能用了.

我把函数赋值之后就不能用了.

Topic source

diska本尊

#1 Created at ... [Delete] [Delete and Lock User]

除了重新开个终端 还有别的方法么、

>>> abs(-1)
1
>>> abs=1
>>> abs(-1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'int' object is not callable

  • 1

Reply