设置pycharm 创建文件时自动生成头文件
找到该路径并添加以下信息
File->settings->Editor->File and Code Templates->Python Script
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : ${DATE} ${TIME}
# @Author : Aries
# @Site : ${SITE}
# @File : ${NAME}.py
# @Software: ${PRODUCT_NAME}