Pycharm设置python script templates
程序员文章站
2022-03-18 23:39:11
...
Pycharm设置python script templates
- File->settings->search “templates”->select the “python scripts”->paste the codes below.
# -*- coding: utf-8 -*-
"""
Project: ${PROJECT_NAME}
Creator: ${USER}
Create time: ${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE}
IDE: ${PRODUCT_NAME}
Introduction:
"""
PROJECT_NAME:工程名
USER:当前用户名
YEAR、MONTH、DAY、HOUR、MINUTE分别表示年月日时分
PRODUCT_NAME:IDE名称