当前位置:网站首页>'module 'object is not callable error
'module 'object is not callable error
2022-07-07 11:16:00 【ITSOK_ U】
python Report errors :TypeError: ‘module’ object is not callable(“ modular ” Object is not callable )
- The specific code is posted below , I can't find what went wrong , I thought it was the wrong class name, which should be lowercase , Finally, looking back, it turned out to be my own py The file name is also coverage.py.
import coverage
import unittest
if __name__ == "__main__":
# Instantiate objects
cov = coverage.coverage()
# To analyze
cov.start()```
- This causes the imported module to be named the same as the program file written by yourself , Obviously, the file module written by yourself is imported here , Not imported coverage.
- terms of settlement : Change the name of the program file , as follows : Right click the program file with the mouse , Or shortcut key shift+F6,
边栏推荐
- The seventh training assignment
- What if copying is prohibited?
- Idea shortcut keys
- 对比学习之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
- How to use cherry pick?
- Verilog design responder [with source code]
- Cmake learning manual
- 技术分享 | 抓包分析 TCP 协议
- Ping tool ICMP message learning
- 变量的解构赋值
猜你喜欢

Deeply understand the characteristics of database transaction isolation

Activity lifecycle

关于在云服务器上(这里用腾讯云)安装mysql8.0并使本地可以远程连接的方法

The opacity value becomes 1%

科普达人丨一文弄懂什么是云计算?

對比學習之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments

Unity script generates configurable files and loads
![[untitled]](/img/15/3db921703147afdf58dfffe532a19b.jpg)
[untitled]

How to use cherry pick?

electron添加SQLite数据库
随机推荐
Deconstruction and assignment of variables
网络协议 概念
滚动踩坑--UNI_APP(八)
创意信息获2家机构调研:GreatDB 数据库已在9地部署
Creative information was surveyed by 2 institutions: greatdb database has been deployed in 9 places
Mysql的json格式查询
"Dream Cup" 2017 Jiangsu information and future primary school summer camp it expert PK program design questions
基于STC8G1K08的0.96寸IIC液晶屏驱动程序
【pyqt】tableWidget里的cellWidget使用信号与槽机制
Shardingsphere sub database and table examples (logical table, real table, binding table, broadcast table, single table)
Kitex retry mechanism
uniCloud
Socket socket programming
Deeply understand the characteristics of database transaction isolation
Wallhaven壁纸桌面版
electron添加SQLite数据库
The sixth training assignment
关于测试人生的一站式发展建议
Transaction rolled back because it has been marked as rollback only
Mpx 插件