Set in the header template in PyCharm

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

2. Configure Content

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

 

Guess you like

Origin www.cnblogs.com/happywu205/p/12593322.html