Commit 1c9ea786 by BellCodeEditor

save project

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