如何在python中获取pylint状态码

2024-09-29 21:54:53 发布

您现在位置:Python中文网/ 问答频道 /正文

我创建了pythonvenv(虚拟环境)。我运行了一个命令来得到pylint结果。你知道吗

>pylint  --errors-only --output-format=pylint2junit.JunitReporter ./code/XXX/TTTT.py > PylintTest.xml

然后我想得到pylint的状态码。你知道吗

>echo $?

$?你知道吗

它不返回代码。你知道吗


Tags: py命令formatonlyoutput虚拟环境codepylint

热门问题