pycharm创建python文件时,怎么默认添加编码格式: # -*- coding: utf-8 -*-
1.file->setting–>Editor–>File and Code Templates
找到Python Script,在文本框里添加# -- coding: utf-8 --,然后勾选 Enable Live Templates,点击apply,点击ok框即可
1.file->setting–>Editor–>File and Code Templates
找到Python Script,在文本框里添加# -- coding: utf-8 --,然后勾选 Enable Live Templates,点击apply,点击ok框即可