pycharm新建py文件时,自动补充文件头注释信息

步骤:

1.File -->Settings

2.选择 File and Code Templates -> Files -> Python Script

文件头注释信息代码样式:

#!/usr/bin/env python3
# encoding: utf-8
'''
@author: yfacesclub
@license: (C) Copyright 2017-2019, Personal exclusive right.
@contact: yfacesclub@163.com
@software: tool
@application:
@file: ${NAME}.py
@time: ${DATE} ${TIME}
@desc:
'''

3.新建一python文件即可

原文地址:https://www.cnblogs.com/yfacesclub/p/10454911.html