编辑器
import codeop cc = codeop.compile_command("x = 1") print(cc is not None)
True