Showing
1 changed file
with
3 additions
and
3 deletions
| 1 | -from flask import Flask | 1 | +from flask import Flask,session,request,redirect,render_template |
| 2 | 2 | ||
| 3 | app = Flask(__name__) | 3 | app = Flask(__name__) |
| 4 | 4 | ||
| 5 | @app.route('/') | 5 | @app.route('/') |
| 6 | -def hello(): | ||
| 7 | - return "小学期快乐!" | 6 | +def hello_world(): # put application's code here |
| 7 | + return session.clear() | ||
| 8 | 8 | ||
| 9 | if __name__ == '__main__': | 9 | if __name__ == '__main__': |
| 10 | app.run() | 10 | app.run() |
-
Please register or login to post a comment