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