pycharm add header comment automatically

File->settings->Editor->File and Code Templates->Python Script

添加以下代码

#!/usr/bin/env python
# _*_ coding: utf-8 _*_
# @Time    : ${DATE} ${TIME}
# @Author  : otfsenter
# @File    : ${NAME}.py
posted @ 2017-03-09 19:15  idlewith  阅读(986)  评论(0编辑  收藏  举报