File->settings->Editor->File and Code Templates->Python Script
添加以下代码:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : ${DATE} ${TIME}
# @Author : user
# @Site : ${SITE}
# @File : ${NAME}.py
# @Software: ${PRODUCT_NAME}
https://segmentfault.com/q/1010000004878716