PyCharm添加Python自定義模板

File->settings->Editor->File andCode Templates->Python Scriptpython


#!/usr/bin/env python
# encoding: utf-8
#set( $SITE = "http://madsstudy.blog.51cto.com/" )

"""
@version: v1.0
@author: madongsheng
@license: Apache Licence
@contact: xxxx@qq.com
@site: ${SITE}
@software: ${PRODUCT_NAME}
@file: ${NAME}.py
@time: ${DATE} ${TIME}
"""

def func():
    pass

class Main():
    def __init__(self):
        pass

if __name__ == '__main__':
    pass
ide

相關文章
相關標籤/搜索