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}
如下图: