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

 


posted @ 2019-01-02 15:23  Yellow_huang  阅读(3117)  评论(0编辑  收藏  举报