Commit acbb1482 by BellCodeEditor

save project

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