1、步骤:File->settings->Editor->File and CodeTemplates->Python Script
2、复制粘贴以下代码,应用即可:
#!/usr/bin/env python
# -*- coding: utf-8 -*-# @Time :${DATE} ${TIME}
# @Author : admin
# @Site :${SITE}
# @File :${NAME}.py
# @Software: ${PRODUCT_NAME}
操作展示: