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
"""

 

posted @ 2018-01-07 15:09  Anlovescode  阅读(1022)  评论(0编辑  收藏  举报