How can I check the syntax of Python script without executing it?

前端 未结 8 1039
长发绾君心
长发绾君心 2020-11-29 14:17

I used to use perl -c programfile to check the syntax of a Perl program and then exit without executing it. Is there an equivalent way to do this for a Python s

8条回答
提交回复
热议问题