找到该路径并添加以下信息
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}
原文:https://www.cnblogs.com/weiyangchen/p/14811554.html