在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}

猜你喜欢

转载自www.cnblogs.com/happywu205/p/12593322.html