是否有任何工具可以帮助在Python中查找bug或执行静态分析?
我在谷歌上搜索了这个问题,我找到了答案-- pychecker ,但是我尝试使用pychecker,它不适用于导入模块。是否可以在检查包是否存在的同时调试程序。
发布于 2013-10-09 11:28:17
和pylint一起去。它将检测是否存在进口模块。
查看有关http://www.pylint.org/的更多详细信息
此外,检查简单的程序,我已经导入测试模块,这是不存在的。
当我对此运行pylint时,我能够检测到以下内容:
root@mahesh-pike:/tmp# pylint prog.py
No config file found, using default configuration
************* Module prog F: 5, 0: Unable to import 'test' (EOL while scanning string literal (<string>, line 1)) (import-error)和皮林特一起去吧,它会帮到你们很多。
https://stackoverflow.com/questions/19263704
复制相似问题