上传者: 38735544
|
上传时间: 2021-11-06 21:45:10
|
文件大小: 34KB
|
文件类型: -
代码如下
_init_.py
from flask import Flask, request, url_for, redirect, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/cool_form', methods=['GET', 'POST'])
def cool_form():
if request.method == 'POST':
# do stuff when the for