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名称
L i f e i s s h o r t , u s e p y t h o n . @ _ @ \frac{Life\ is\ short,\ use\ python.}{^{@}\_^{@}} @_@Life is short, use python.