Commit ca4e47db by BellCodeEditor

save project

parent b810c294
Showing with 25 additions and 0 deletions
b=6
username = "20170904"
userpassword = "19481201"
while True:
if b>0:
name = input("给我输入用户名:")
password = input("给我输入密码:")
b=b-1
if name == username and password == userpassword:
print("登录成功!")
break
if name!=username:
print("用户名错误!给我重新输入")
print("你还有"+str(i)"次机会")
else:
if password != userpassword:
print("密码错误!给我重新输入")
print("你还有"+str(i)"次机会")
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