gur*_*lex 11
您可以使用--file-output=y命令行选项.引用手册页:
--files-output=<y_or_n>
Put messages in a separate file for each module / package speci?
fied on the command line instead of printing them on stdout.
Reports (if any) will be written in a file name
"pylint_global.[txt|html]". [current: no]
Run Code Online (Sandbox Code Playgroud)
输出的格式被指定的 --output-format=<format>,其中格式可以是选项text,parseable, colorized, msvs (视觉工作室)和html.
您可以在shell中重定向其输出.> somefile.txt
如果它写入stderr,请使用2>&1 > somefile.txt