Commit b548997a by BellCodeEditor

save project

parent 3cf3bf44
Showing with 4 additions and 3 deletions
...@@ -3,7 +3,9 @@ userpassword = "1" ...@@ -3,7 +3,9 @@ userpassword = "1"
while True: while True:
name = input("请输入用户名:") name = input("请输入用户名:")
password = input("请输入密码:") password = input("请输入密码:")
if name == username and password == userpassword: if name != username:
print("账户输入错误!")
if passwork != userpassword:
print("密码输入错误!")
break break
print("账户和密码输入错误!")
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