Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在不运行 python 程序的情况下检查错误?我想获得说明我的错误在哪一行的错误消息,但我不想执行该程序。
使用代码分析工具,例如pylint.
pylint
pylint是最受欢迎的,但还有其他:
flake8
pyflakes
Codeq
希望有帮助。