python 报错 TypeError: 'module' object is not callable
2019-02-28 11:57
621 查看
原因分析:
Python导入模块的方法有两种:
import module 和 from module import *
区别是前者所有导入的东西使用时需加上模块名的限定,而后者则不需要
如图,若是方式1导入后直接报 TypeError: ‘module’ object is not callable
解决方法:
相关文章推荐
- python 2.7 : 引用模块时出现TypeError:'module' object is not callable
- python错误:TypeError: 'module' object is not callable
- python TypeError: 'module' object is not callable
- python import 包问题:TypeError: 'module' object is not callable
- Python包导入(TypeError: 'module' object is not callable),及一定要记住Python成员函数第一个参数值是self。
- Python TypeError: 'module' object is not callable
- python+selenium自动化测试~打开浏览器报TypeError: 'module' object is not callable
- python错误:TypeError: 'module' object is not callable
- TypeError: 'module' object is not callable
- python错误: TypeError:'dict' object is not callable
- Python:TypeError: 'int' object is not callable
- Python: TypeError: 'int' object is not callable
- python的exit退出时,提示TypeError: 'str' object is not callable
- Python学习笔记 --- TypeError: 'unicode' object is not callable
- Python错误:TypeError: 'int' object is not callable解决办法
- python class中遇到的TypeError: 'module' object is not callable
- python3在pycharm中为什么导入random模块不能用? TypeError: 'module' object is not callable
- Python: TypeError: 'dict' object is not callable
- Python:TypeError: 'int' object is not callable
- python错误:TypeError: 'str' object is not callable