Commit 625e5cdf by BellCodeEditor

save project

parent 3fed79b3
Showing with 7 additions and 2 deletions
...@@ -5,13 +5,17 @@ while True: ...@@ -5,13 +5,17 @@ while True:
usernameprint = input("请输入账号:") usernameprint = input("请输入账号:")
userpasswordprint = input("请输入密码:") userpasswordprint = input("请输入密码:")
if username == usernameprint and userpassword == userpasswordprint: if username == usernameprint and userpassword == userpasswordprint:
print("登录成功!") print("登录成功!")
print("欢迎!")
break break
if username != usernameprint: if username != usernameprint:
print("账号错误,请重试") print("账号错误,请重试")
print("提示:你喜欢的编程语言是嘛玩意")
continue
if userpassword != userpasswordprint: if userpassword != userpasswordprint:
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