创建文件夹自动生成文件头
File->settings->Editor->File and Code Templates->Python Script
下面为你要添加的文件头内容mac同理,JetBrains全家桶几乎都是这样设置
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : ${DATE} ${TIME}
# @Author : haifengzuishuai
# @Site : ${SITE}
# @File : ${NAME}.py
# @Software: ${PRODUCT_NAME}