Pycharm python模板设置

设置方式:

 

 

设置内容:

# coding=utf-8
'''
author: Zhang Kai
project:${PROJECT_NAME}
file: ${NAME}.py
date:${DATE}
'''

 

其他设置项目:

#coding=utf-8
# author:${USER} 
# creat_time: ${DATE} ${TIME}
# corrent_day: ${DATE} @ ${DAY} ${MONTH} ${YEAR}
# corrent_month: ${MONTH} @ ${MONTH_NAME_FULL} ${MONTH_NAME_SHORT}
// comment: ${MONTH_NAME_FULL}全称展示月份 ${MONTH_NAME_SHORT}简称展示月份(中文无差别)
# corrent_time: ${TIME} ${HOUR} ${MINUTE}
# file: ${NAME}.py
# others: ${PROJECT_NAME} ${PRODUCT_NAME} ${END} ${DS}
// comment: ${DS}代表美元符号
#set($CUSTOMER = "customer_info")
# customer: ${CUSTOMER}
// comment: 使用set可以自定义变量,注意set与井号之间无空格(区分备注,使用//,实际不可以)

运行结果

#coding=utf-8
# author:zhang kai
# creat_time: 2020/1/7 11:45
# corrent_day: 2020/1/7 @ 07 01 2019
# corrent_month: 01 @ 一月 一月
# corrent_time: 11:45 11 45
# file: tools.py
# others: NewProject PyCharm  $
# customer: customer_info

 

posted @ 2020-09-09 15:49  这么神奇  阅读(472)  评论(0编辑  收藏  举报