解决错误: TypeError: 'str' object is not callable
2019-05-11 20:25
3363 查看
str='' a = [1,2,3] # for i in a : # str += i # print(str) b=1 # c=repr(b) c =str(1) print(c)
打印时
File "E:/Ipython/字体解密 爬虫/test.py", line 9, in <module>
c =str(1)
TypeError: 'str' object is not callable
Process finished with exit code 1
原因上面有定义的str变量,而str是python内置函数,调用时不能有其他的str变量
相关文章推荐
- python错误:TypeError: 'str' object is not callable
- Python中报“TypeError: 'int' object is not callable”错误的解决办法
- 错误: TypeError: 'str' object is not callable,TypeError: 'int' object is not callable等
- Python错误:TypeError: 'int' object is not callable解决办法
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- Anaconda下import caffe出现错误TypeError: 'module' object is not callable
- Python 3.5 Socket TypeError: a bytes-like object is required, not 'str' 错误提示
- Python 出现错误TypeError: ‘NoneType’ object is not iterable解决办法
- 报错:TypeError: 'NoneType' object is not callable问题解决
- python错误: TypeError:'dict' object is not callable
- TypeError: 'module' object is not callable错误处理
- PyOpenGL出现错误TypeError: 'NoneType' object is not callable
- 《Django学习》遇到的问题:“TypeError:'str' object is not callable"
- TypeError: 'str' object is not callable
- python3中,socket使用send函数时出现的错误:TypeError: a bytes-like object is required, not 'str'
- TypeError: 'str' object is not callable
- python错误: TypeError: the JSON object must be str, bytes or bytearray, not 'dict'解决办法
- TypeError: 'str' object is not callable
- [已解决]TypeError: 'module' object is not callable