在File—settings—File and Code Templates—Python script 脚本里添加:
#!usr/bin/env python
#-*- coding:utf-8 _*-
"""
@author:binbinzhang
@file: ${NAME}.py
@version:
@time: ${YEAR}/${MONTH}/${DAY}
@email:binbin_Erices@163.com
@function:
"""
保存,新建py文件,就可以实现自动化文件模板。
Predefined template variables
The following predefined variables can be used in file templates:
参考链接:http://www.jetbrains.com/help/pycharm/file-template-variables.html