Pycharm中设置py文件头部注释信息

File->settings->Editor->File and Code Templates->Python Script ,添加一下内容:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : ${DATE} ${HOUR}:${MINUTE}
# @Author  : Lynn
# @Site    : ${SITE}
# @File    : ${NAME}.py
# @Software: ${PRODUCT_NAME}

如下图:

posted @ 2020-08-26 08:57  Nidhogg14  阅读(1105)  评论(0编辑  收藏  举报