PyCharm新建.py文件时自动带出指定内容

如:给Pycharm加上头行  # coding:utf-8
File—Setting—Editor--Code Style--File and Code Templates--Python Script  后面加上 # coding:utf-8 即可

新建一个py文件

原文地址:https://www.cnblogs.com/zhongyehai/p/10520448.html