python pycharm 添加默认utf-8
在pycharm 按顺序选择file >> settings >> editor>> file and code templates >>python script
然后把下方代码粘贴上去点OK就行,然后新建python 文件的时候就会自动加下面两行代码上去
#!/user/bin/env python3
# -*- coding: utf-8 -*-
在pycharm 按顺序选择file >> settings >> editor>> file and code templates >>python script
然后把下方代码粘贴上去点OK就行,然后新建python 文件的时候就会自动加下面两行代码上去
#!/user/bin/env python3
# -*- coding: utf-8 -*-