Commit c827abe5 by BellCodeEditor

save project

parent 25f546d6
Showing with 8 additions and 3 deletions
...@@ -4,12 +4,16 @@ while True: ...@@ -4,12 +4,16 @@ while True:
n = input("请输入用户名:") n = input("请输入用户名:")
p = input("请输入密码:") p = input("请输入密码:")
if n == username and p == userpassword: if n == username and p == userpassword:
i<0:
print("登录成功!") print("登录成功!")
break break
elif n!=username: if n!=username:
print("用户名错误!") print("用户名错误!")
else p!=userpassword: continue
if p!=userpassword:
print("密码错误!") print("密码错误!")
print("欢迎来到贝尔编程!") print("欢迎来到贝尔编程!")
else:
exit()
\ 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