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