pycharm设置编码方式的方法:
1、打开要设置的文件;
2、左上角 file 中的Settings…
3、看下图,选中 Editor 的 File Encodings ,然后在右边选择你想要的的编码格式
更多Python问题,请关注!!