原文链接:https://www.cnblogs.com/zejin2008/p/6856618.html
位置:File->settings->Editor->File and Code Templates->Python Script
添加以下代码:
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : ${DATE} ${TIME} # @Author : zejin # @File : ${NAME}.py
如下图所示
再建一个py文件时就会自动添加信息:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/2017 3:29 PM
# @Author : zejin
# @File : t_gen_template.py