2020-11-11
阅读量:
1982
python报错: TypeError: 'tuple' object is not callable
问:
python报错:
TypeError: 'tuple' object is not callable
答:
这是因为在执行此代码前,误将python内置函数input()赋值给一个元祖变量,导致input()失去原本的功能,解决方法是执行del input先删除原来的变量,使input()恢复其内置功能后再执行input()。






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论