Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_1
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
ea673f2c
authored
Jul 10, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
f67d1d9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
diy1.py
diy1.py
View file @
ea673f2c
...
@@ -4,11 +4,12 @@ d = "123456" # 保存在服务器数据库中的用户密码(正确的密
...
@@ -4,11 +4,12 @@ d = "123456" # 保存在服务器数据库中的用户密码(正确的密
while
True
:
while
True
:
name
=
input
(
'账号'
)
name
=
input
(
'账号'
)
njs
=
input
(
'密码'
)
njs
=
input
(
'密码'
)
if
name
==
username
and
njs
==
userpasswor
d
:
if
name
==
e
and
njs
==
d
:
print
(
'登录成功'
)
print
(
'登录成功'
)
break
break
if
name
!=
e
:
if
name
!=
e
:
print
(
'多少度'
)
print
(
'多少度'
)
continue
if
njs
!=
d
:
if
njs
!=
d
:
print
(
'没和你'
)
print
(
'没和你'
)
print
(
'欢迎光临'
)
print
(
'欢迎光临'
)
...
...
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