Commit cf047c8d by BellCodeEditor

save project

parent 7f71ed9b
Showing with 1 additions and 1 deletions
...@@ -2,9 +2,9 @@ username = "python" ...@@ -2,9 +2,9 @@ username = "python"
userpassword = "123456" userpassword = "123456"
while True: while True:
name = input("请输入用户名:") name = input("请输入用户名:")
password = input("请输入密码:")
if name != username: if name != username:
print("用户名错误") print("用户名错误")
password = input("请输入密码:")
elif password != userpassword: elif password != userpassword:
print("密码错误") print("密码错误")
else: else:
......
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