PyCharm的模板设置

PyCharm的模板设置

在File—settings—File and Code Templates—Python script 脚本里添加:

# -*- coding: utf-8 -*-
# __author: Tiger_Lee
# @file: ${NAME}.py
# @time: ${YEAR} ${MONTH} ${DAY}
# @email: [email protected]

保存,新建py文件,就可以实现自动化文件模板。

Predefined template variables 
The following predefined variables can be used in file templates: 
这里写图片描述

猜你喜欢

转载自www.cnblogs.com/mqxBlog/p/10160997.html