当前位置:网站首页>'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,
边栏推荐
- Case study of Jinshan API translation function based on retrofit framework
- Go redis Middleware
- Drive HC based on de2115 development board_ SR04 ultrasonic ranging module [source code attached]
- Introduction to shell programming
- Mysql的json格式查询
- Go slice comparison
- Arduino board description
- IDEA快捷键大全
- oracle常见锁表处理方式
- verilog设计抢答器【附源码】
猜你喜欢
[untitled]
JS add spaces to the string
如何在博客中添加Aplayer音乐播放器
Antd select selector drop-down box follows the scroll bar to scroll through the solution
MPX plug-in
Vscode 尝试在目标目录创建文件时发生一个错误:拒绝访问【已解决】
Array object sorting
[STM32] actual combat 3.1 - drive 42 stepper motors with STM32 and tb6600 drivers (I)
From pornographic live broadcast to live broadcast E-commerce
IDEA快捷键大全
随机推荐
Unity script visualization about layout code
测试开发基础,教你做一个完整功能的Web平台之环境准备
[untitled]
[pyqt] the cellwidget in tablewidget uses signal and slot mechanism
Idea shortcut keys
Hash / (understanding, implementation and application)
Case study of Jinshan API translation function based on retrofit framework
高考作文,高频提及科技那些事儿……
seata 1.3.0 四种模式解决分布式事务(AT、TCC、SAGA、XA)
2021 summary and 2022 outlook
Get pictures through opencv, change channels and save them
[untitled]
2022.7.6DAY598
Transaction rolled back because it has been marked as rollback-only解决
Creative information was surveyed by 2 institutions: greatdb database has been deployed in 9 places
From pornographic live broadcast to live broadcast E-commerce
The sixth training assignment
How to get hardware information in unity
【时间格式工具函数的封装】
Eth trunk link switching delay is too high