Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
戒酒的李白
2024-07-03 00:20:13 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ef1d471a30b62ff626af4f305524db287967ce32
ef1d471a
1 parent
8cf73850
【app.py】退出登录后清楚session
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app.py
app.py
View file @
ef1d471
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
...
...
Please
register
or
login
to post a comment