pycharm --file and code templates

pycharm --file and code templates
pycharm --file and code templates

进入File->settings->框内搜索File and Code Templates->Python Script

其中的模板为
#encoding:utf-8
#!/usr/bin/env python


"""
@version: python2.7
@author: ‘$USER‘
@license: Apache Licence 
@contact: [email protected]
@site: ${SITE}
@software: ${PRODUCT_NAME}
@file: ${NAME}.py
@time: ${DATE} ${TIME}
"""

或者


#@author:${USER}
#@file: ${NAME}.py
#@time: ${YEAR}/${MONTH}/${DAY}

本文参考 小郑郑要飞飞 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/qq_19175749/article/details/50881301?utm_source=copy