Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-5-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
b3137868
authored
Jun 13, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
0db28b07
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletions
diy.py
田帅.py
diy.py
View file @
b3137868
# 臂力挑战赛
6
# 臂力挑战赛
# 快用你机灵的小脑瓜想想,如何将刘强和他的臂力值自动插入到hero列表中?
name
=
'刘强'
power
=
66
...
...
田帅.py
0 → 100644
View file @
b3137868
username
=
"python"
#服务器端保存的
username
=
"python"
#服务器端保存的
userpassword
=
"123456"
#服务器端保存i
i
=
3
while
True
:
if
i
>
0
:
name
=
input
(
"输入用户名"
)
password
=
input
(
"输入密码"
)
i
-=
1
print
(
"你还剩下"
+
str
(
i
)
+
"次登录机会"
)
if
password
==
userpassword
and
username
==
name
:
print
(
"恭喜登录成功"
)
break
if
name
!=
username
:
print
(
"用户名错误,重新输入吧"
)
continue
if
password
!=
userpassword
:
print
(
"密码你都忘记了???!你是有多健忘啊"
)
else
:
print
(
"账户被锁定,请把杜昊伦暴走一顿来解决问题"
)
exit
()
print
(
"欢迎来到田老师的编程课,说田老师帅帅即可解锁"
)
\ 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