Commit acbb1482 by BellCodeEditor

save project

parent 2a76f784
Showing with 6 additions and 0 deletions
name="teacher" name="teacher"
psw="123456" psw="123456"
i=3
while True: while True:
if i==0:
print("次数用完,无法登录")
exit()
name_i=input("请输入你的账号:") name_i=input("请输入你的账号:")
psw_i=input("去输入你的密码:") psw_i=input("去输入你的密码:")
i=i-1
if name == name_i and psw==psw_i: if name == name_i and psw==psw_i:
print("登录成功!") print("登录成功!")
break; break;
else: else:
if name !=name_i: if name !=name_i:
print("账号错误") print("账号错误")
continue
else: else:
print("密码错误") print("密码错误")
print("登录失败!") print("登录失败!")
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