Commit 13541bbe by BellCodeEditor

save project

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