戒酒的李白

【app.py】退出登录后清楚session

Showing 1 changed file with 3 additions and 3 deletions
from flask import Flask
from flask import Flask,session,request,redirect,render_template
app = Flask(__name__)
@app.route('/')
def hello():
return "小学期快乐!"
def hello_world(): # put application's code here
return session.clear()
if __name__ == '__main__':
app.run()
\ No newline at end of file
... ...