PyCharm的模板设置
PyCharm的模板设置
在File—settings—File and Code Templates—Python script 脚本里添加:
# -*- coding: utf-8 -*- # __author: Tiger_Lee # @file: ${NAME}.py # @time: ${YEAR} ${MONTH} ${DAY} # @email: lxh661314@163.com
保存,新建py文件,就可以实现自动化文件模板。
Predefined template variables
The following predefined variables can be used in file templates: