Commit ab5e0a1a by BellCodeEditor

save project

parent dc293d10
Showing with 16 additions and 13 deletions
ue = "python" ue = "python"
us= "123456" us= "123456"
i=3 i=3
while True: while True:
name = input("请输入用户名:") if i>0:
password = input("请输入密码:") name = input("请输入用户名:")
i-=1 password = input("请输入密码:")
if name == ue and password == us: i-=1
print("密码正确") if name == ue and password == us:
break print("密码正确")
if name != ue: break
print("帐号错误") if name != ue:
continue print("帐号错误")
if password != us: continue
print("密码错误") if password != us:
print("密码错误")
else: else:
print("密码锁定") print("密码锁定")
exit exit
print("登录成功!") #print("登录成功!")
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