报错:TypeError: module.init() takes at most 2 arguments (3 given)
因为在BTSwitchTVTest时模块 而不是类
解决方案:
- from BTSwitchTVTest import BTSwitchTVTest 从模块中导入类
- 在BTSwitchTVTest .py的同级目录下,建立__init__.py文件
这样在import BTSwitchTVTest 时导入是类而不是模块
报错:TypeError: module.init() takes at most 2 arguments (3 given)
因为在BTSwitchTVTest时模块 而不是类
解决方案: