欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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名称

Life is short, use python.@_@\frac{Life\ is\ short,\ use\ python.}{^{@}\_^{@}}

相关标签: Pycharm