主页
Python
Python tabnanny 模块
demo_ref_module_tabnanny_basic
运行 ❯
×
更改方向
保存代码
更改主题
import tabnanny import tempfile with tempfile.NamedTemporaryFile(mode='w', suffix='.py', delete=False) as f: f.write('def hello():\n print("Hello")\n') fname = f.name tabnanny.check(fname) print('Indentation check completed')
Indentation check completed