Commit a9f3e338 by BellCodeEditor

save project

parent 0a47d1c2
Showing with 17 additions and 0 deletions
uesrname = "python"
uesrpassword = "098765"
while True:
name = input("请输入您的用户名")
password = input("请输入您的密码")
if name == uesrname and password == uesrpassword:
print("登录成功!")
break
elif name != uesrname:
print("用户名错误")
else:
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