pycharm 2017新建文件添加编码方式等

file->setting->Editor->File and Code Templates->Python Script 添加

#!/usr/bin/python3
# -*- coding:utf-8 -*-
__author__='$USER'

原文地址:https://www.cnblogs.com/chenanan/p/7523919.html