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

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: [email protected]

@software: 

@file: ${NAME}.py

@time: ${DATE} ${TIME}

@desc:

"""

猜你喜欢

转载自blog.csdn.net/lynnyq/article/details/80304086