热线电话:13121318867

登录
2020-11-11 阅读量: 1982
python报错: TypeError: 'tuple' object is not callable

问:

python报错:

TypeError: 'tuple' object is not callable

image.png


答:

这是因为在执行此代码前,误将python内置函数input()赋值给一个元祖变量,导致input()失去原本的功能,解决方法是执行del input先删除原来的变量,使input()恢复其内置功能后再执行input()。

image.png

47.8880
0
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子