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
相關文章
相關標籤/搜索