Pycharm上设置模板

Python Script 模板设置
PyCharm设置位置

位置3填写模板内容
fx:

#coding:utf-8
#file: ${NAME}.py
#@author: ZHEN
#@contact: [email protected]
#@time: ${DATE} ${TIME}
#@desc:

Live Templates 自定义模块设置
图解

位置2添加自定义模板
位置3填写模板内容

添加一个Flask自定义模板
fx:

from flask import Flask

app = Flask(__name__)

@app.route('/')
def index():
    return 'hello world'

if __name__ == '__main__':
    app.run(debug=True)

猜你喜欢

转载自blog.csdn.net/weixin_42696066/article/details/81835047