【Location】
找到File–>Settings–>Code Style–>File and Code Templates–>Python Script
# @File : ${NAME}.py
# @Author: ${USER}
# @Time: ${DATE} ${TIME}
# -*- coding: utf-8 -*-
#[[$END$]]#
@Author
You can also replace your own name after the above .
Note that you must check the Enable Live Templates, otherwise the content of setting the position of the cursor will not take effect. #[[$END$]]#
Notes on other fields:
${PROJECT_NAME} - 当前项目的名称。
${NAME} - 在文件创建过程中在“新建文件”对话框中指定的新文件的名称。
${USER} - 当前用户的登录名。
${DATE} - 当前的系统日期。
${TIME} - 当前系统时间。
${YEAR} - 今年。
${MONTH} - 当月。
${DAY} - 当月的当天。
${HOUR} - 目前的小时。
${MINUTE} - 当前分钟。
${PRODUCT_NAME} - 将在其中创建文件的IDE的名称。
${MONTH_NAME_SHORT} - 月份。 示例:1月,2月等
${MONTH_NAME_FULL} - 月的全民。 示例:1月,2月等