Commit 0454bd75 by BellCodeEditor

save project

parent 4a7cb6b6
Showing with 15 additions and 0 deletions
username = "cy"
userpassword = "nmsl"
while True:
name = input("输用户名:")
password = input("输密码:")
if name == username and password == userpassword:
print("登录成功!")
break
if name != username:
print("nmsl!用户错了!")
continue
if password != userpassword:
print("nmsl!密码错了!")
print("welcome to nmsl !")
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