Set .py file header information in the PyCharm

1、 File -- Settings -- Editor -- File and Code Templates -- Python Script --

 

 

2, header file information template

# encoding: utf-8
"""
@author: 你的名字
@contact: 你的邮箱
@software: ${PRODUCT_NAME}
@file: ${NAME}.py
@time: ${DATE} ${TIME}
"""

3. Results:

 

Published 118 original articles · won praise 85 · views 480 000 +

Guess you like

Origin blog.csdn.net/c_lanxiaofang/article/details/104109563