python - black代码格式化工具

简单使用

安装

pip3 install black

使用

black {source_file_or_directory}

跳过字符串格式化

black -S {source_file_or_directory}
posted @ 2023-10-09 09:33  wstong  阅读(17)  评论(0编辑  收藏  举报