Python格式化工具yapf
官网:https://github.com/google/yapf安装:pip3 install yapf参数:-p:使用多线程–style:google保持80列换行,indent_width,前面4个空格-i:直接在原文件修改,inplace操作-r:递归的所有文件都进行该操作./:当前目录,也可以为具体文件,./test.py例子:yapf -p --style='{based_on_style: google, indent_width: 4}' -i -r ./...
原创
2022-03-05 14:12:54 ·
739 阅读 ·
0 评论