1. 菜单栏-> File -> Settings -> Editor -> File and Code Templates ->Python Script
2.配置头文件内容,内容根据自己情况设置;
##!/usr/bin/python
# -*- coding: utf-8 -*-
# @Time : ${DATE} ${TIME}
# @Author : Hunk
# @Email : qiang.liu@ikooo.cn
# @File : ${NAME}.py
# @Software: ${PRODUCT_NAME}