Commit f27e29dc by BellCodeEditor

save project

parent 6a6b1ffc
Showing with 2 additions and 1 deletions
...@@ -5,8 +5,8 @@ password=input("请输入密码") ...@@ -5,8 +5,8 @@ password=input("请输入密码")
# 用input()实现用户输入账号、密码的功能 # 用input()实现用户输入账号、密码的功能
while True: while True:
if name==username and password==userpassword: if name==username and password==userpassword:
break
print("账号或密码错误,请重新输入!) print("账号或密码错误,请重新输入!)
break
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