【发布时间】:2020-03-31 07:58:12
【问题描述】:
我正在制作python代码并使用flask制作网页。我需要将此html页面的输入输入python并在处理后发送回html页面。我该怎么做?
`块引用 from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def home():
return render_template("login.html")
@app.route('/about/')
def about():
return ('you wil get all sort of shayari here')
if __name__ == "__main__":
app.run()
'
【问题讨论】:
-
这能回答你的问题吗? Send data from a textbox into Flask?
标签: html python-3.x flask