1. 进入setting -> File and Code Templates -> Python Script
2.代码头部分 写入
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : ${DATE} ${TIME} # @Author : Yellow_huang # @Email : [email protected] # @File : ${NAME}.py
3.新建脚本就会出现下面的效果
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/06/2 15:15 # @Author : Yellow_huang # @Email : [email protected] # @File : test.py
原文地址:https://www.cnblogs.com/yellow-hgy/p/10208759.html
时间: 2024-11-06 09:43:45