Commit b3137868 by BellCodeEditor

auto save

parent 0db28b07
Showing with 24 additions and 1 deletions
# 臂力挑战赛
6# 臂力挑战赛
# 快用你机灵的小脑瓜想想,如何将刘强和他的臂力值自动插入到hero列表中?
name='刘强'
power=66
......
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment