PyCharm中py文件自动添加头文件

  • 1.PyCharm设置

打开File–>Settings–>Editot–>File and Code Templates选择Python Script添加如下头文件

#!/usr/bin/env python

# -*- coding: utf-8 -*-

"""

@author: lynnyq

@license: (C) Copyright 2018, xxx Corporation Limited.

@contact: lynnyq@qq.com

@software: 

@file: ${NAME}.py

@time: ${DATE} ${TIME}

@desc:

"""
Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐