Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson20-diy1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
24f44001
authored
Jun 20, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
d342feb7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
code.py
user.txt
code.py
View file @
24f44001
...
@@ -41,7 +41,7 @@ def login(): # 登录验证
...
@@ -41,7 +41,7 @@ def login(): # 登录验证
if
pwd
==
password
:
if
pwd
==
password
:
messagebox
.
showinfo
(
"成功"
,
"登录成功"
)
messagebox
.
showinfo
(
"成功"
,
"登录成功"
)
else
:
else
:
messagebox
.
showwarning
(
"错误"
,
"用户名或密码错误!"
)
messagebox
.
showwarning
(
"错误"
,
"用户名或密码错误
,或者未注册
!"
)
class
My_login
():
# 登录窗口
class
My_login
():
# 登录窗口
def
__init__
(
self
):
def
__init__
(
self
):
...
...
user.txt
View file @
24f44001
{"admin": "admin", "python": "123456"}
{"admin": "admin", "python": "123456", "123123": "1", "1": "1", "2": "1"}
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment