您的位置:首页 > 移动开发 > Objective-C

'list' object is not callable的一种原因及解决办法

2020-07-20 04:15 1451 查看

‘list’ object is not callable的一种原因及解决办法

s = 23
print(str(s))
Traceback (most recent call last):
File "search1.py", line 85, in <module>
print(str(s))
TypeError: 'list' object is not callable

解决:

del str
s = 23
print(str(s))
23
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: