PyCharm设置个性模板

打开PyCharm
依次选择File—settings—Editor—Code Style —File and Code Templates—Python script
复制一下代码:

-\*- coding:utf-8 _*-
"""
@author:yourname
@file: ${NAME}.py
@time: ${YEAR}/${MONTH}/${DAY}
#@contact: [email protected]
#@desc:
"""

你可能感兴趣的:(PyCharm)