File->Setting->Editor->File and Code Templates->python script,右侧框框内输入: # -*- coding:utf-8 -*- ,然后重新启动Pycharm,这样每个新建的Python文件行首都会显示 # -*- coding:utf-8 -*-
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/174044.html原文链接:https://javaforall.net
Pycharm设置utf-8自动显示File gt Setting gt Editor gt FileandCodeT gt pythonscript 右侧框框内输入 nbsp coding utf 8 nbsp 然后重新启动 Pycharm 这样每个新建的 Python 文件行首都会显示 nbsp coding utf 8
File->Setting->Editor->File and Code Templates->python script,右侧框框内输入: # -*- coding:utf-8 -*- ,然后重新启动Pycharm,这样每个新建的Python文件行首都会显示 # -*- coding:utf-8 -*-
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/174044.html原文链接:https://javaforall.net