Commit 82f26552 by BellCodeEditor

save project

parent 5e8cb22a
Showing with 7 additions and 1 deletions
......@@ -6,5 +6,10 @@ name=input("用户名")
password=input("密码")
# 如果用户输入的账号、密码正确,提示登陆成功
if name==username and password==userpassword:
while True:
name=input("用户名")
password=input("密码")
if name==username and password==userpassword:
print("密码正确")
break
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