Commit 912dcd98 by BellCodeEditor

save project

parent 060be966
Showing with 13 additions and 9 deletions
username = "python" sp = "gg"
userpassword = "123456" np = "abcd"
while True: while True:
name = input("请输入用户名:") qw = input("请输入用户名:")
password = input("请输入密码:") zx = input("请输入密码:")
if name == username and password == userpassword: if qw == sp and np == zx:
print("登录成功!") print("OK")
print("用户名和密码错误!请重新输入") break
print("欢迎来到贝尔编程!") if qw!=sp:
\ No newline at end of file print("用户名!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
continue
if zx !=np:
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