如何进行PYTHON语法检查

2025-04-16 15:24:22
推荐回答(1个)
回答1:

语法验证简单一些,编译一遍就可以了。
有py_compile, compiler等等.

try:
compile(word,'