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
2fb38505
authored
Jun 25, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
da3d106f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
1.py
1.py
View file @
2fb38505
...
...
@@ -3,7 +3,7 @@ p="123456"
#w=input("你的名字是什么")
#i=input('你的密码是什么?')
m
=
1
def
u
():
def
u
():
while
True
:
w
=
input
(
"你的名字是什么"
)
i
=
input
(
'你的密码是什么?'
)
...
...
@@ -16,6 +16,7 @@ def u ():
print
(
'密码输入错误,请重新输入'
)
#print("用户名或密码输入错误,请重新输入")
m
=
m
+
1
print
(
"你还有+str(i)+次机会"
)
if
m
>
3
:
print
(
'连续三次输入错误。拒绝登录'
)
break
...
...
@@ -23,6 +24,7 @@ def u ():
print
(
"欢迎来到编程器"
)
else
:
print
(
"去警察局"
)
print
(
u
)
...
...
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