pycharm 创建文件时,自动添加文件头注释
File->settings->Editor->File and Code Templates->Python Script
# -*- coding: utf-8 -*-
"""
@author: AN
@contact:
@Created on: ${DATE} ${TIME}
"""
效果
# -*- coding: utf-8 -*- """ @author: AN @contact: anloveslife@gmail.com @Created on: 2018/1/7 15:06 """