pycharm添加文件头注释
1. 进入setting -> File and Code Templates -> Python Script
2.代码头部分 写入
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : ${DATE} ${TIME} # @Author : Yellow_huang # @Email : shgc123@163.com # @File : ${NAME}.py
3.新建脚本就会出现下面的效果
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/06/2 15:15 # @Author : Yellow_huang # @Email : shgc123@163.com # @File : test.py