在PyCharm中设置.py文件的头部信息

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

2、 头部文件信息模板

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

3、结果:

发布了118 篇原创文章 · 获赞 85 · 访问量 48万+

猜你喜欢

转载自blog.csdn.net/c_lanxiaofang/article/details/104109563