在PyCharm中设置文件头模板

1.  File -> Settings -> Editor -> File and Code Templates ->Python Script

2.配置内容

#!/usr/bin python3
# -*- encoding: utf-8 -*-
# @Author : dongguajiang
# @File : ${NAME}.py
# @Time : ${DATE} ${TIME}

 

posted @ 2020-03-29 16:50  冬瓜酱  阅读(557)  评论(0)    收藏  举报