Commit cfdb679d by BellCodeEditor

save project

parent c5e8ab82
Showing with 6 additions and 1 deletions
...@@ -6,6 +6,10 @@ while True: ...@@ -6,6 +6,10 @@ while True:
mg = input('输入密码') mg = input('输入密码')
if a == username and mg == userpassword: if a == username and mg == userpassword:
print('登录成功') print('登录成功')
break break
if a !=username:
print(账错)
if a !=username:
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