Commit 43280ccc by BellCodeEditor

save project

parent 0f45816a
Showing with 17 additions and 11 deletions
b=6
username = "20170904" username = "20170904"
userpassword = "19481201" userpassword = "19481201"
while True: while True:
name = input("给我输入用户名:") if b>0:
password = input("给我输入密码:") name = input("给我输入用户名:")
if name == username and password == userpassword: password = input("给我输入密码:")
print("登录成功!") b=b-1
if name == username and password == userpassword:
print("登录成功!")
break break
if name!=username: if name!=username:
print("用户名错误!给我重新输入") print("用户名错误!给我重新输入")
else:
if password != userpassword:
print("密码错误!给我重新输入")
else: else:
if password != userpassword: print("**账号去世,请换一个")
print("密码错误!给我重新输入") exit()
print("欢迎来到贝尔编程!") 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