file->setting->Editor->File and Code Templates->Python Script 添加
#!/usr/bin/python3# -*- coding:utf-8 -*-__author__=‘$USER‘
pycharm 2017新建文件添加编码方式等
原文:http://www.cnblogs.com/chenanan/p/7523919.html