Commit d9741216 by BellCodeEditor

save project

parent 10c8fcb9
Showing with 4 additions and 2 deletions
...@@ -3,6 +3,8 @@ userpassword = "123456" ...@@ -3,6 +3,8 @@ userpassword = "123456"
while True: while True:
name = input("请输入用户名:") name = input("请输入用户名:")
password = input("请输入密码:") password = input("请输入密码:")
if name == username and password == userpassword:break print("请重新输入用户和密码") if name == username and password == userpassword:
print("登录成功!")
break
print("请重新输入用户和密码")
print("欢迎来到玛酷机器人") 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