Commit 13541bbe by BellCodeEditor

save project

parent 79869045
Showing with 18 additions and 10 deletions
u_n="so"
u_n="so"
u_n="so"
u_p="013131"
name=input("请输入账号:")
password=input("请输入密码:")
i=3
while True:
if name==u_n and password==u_p:
print("登陆成功!")
break
elif name!=u_n:
print("用户名错误!")
else :
print("密码错误!")
if i>0:
name=input("请输入账号:")
password=input("请输入密码:")
i-=1
if name==u_n and password==u_p:
print("登陆成功!")
break
if name!=u_n:
print("用户名错误!")
continue
if password!=u_p:
print("密码错误!")
continue
else:
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