pycharm創建python文件時,怎麼默認添加編碼格式: # -*- coding: utf-8 -*-

1.file->setting–>Editor–>File and Code Templates 找到Python Script,在文本框裏添加# -- coding: utf-8 --,然後勾選 Enable Live Templates,點擊apply,點擊ok框即可
相關文章
相關標籤/搜索