需要在当前conda环境安装相关的包
pip install yapf
or
pip install black
然后在config文件中加入
"python.formatting.provider": "black",
京公网安备 11010502049817号