我曾经用来perl -c programfile检查Perl程序的语法,然后退出而不执行它.是否有相同的方法为Python脚本执行此操作?
perl -c programfile
python syntax-checking
python ×1
syntax-checking ×1