Commit 1ed486b7 by BellCodeEditor

save project

parent d9bbf906
Showing with 8 additions and 6 deletions
......@@ -6,10 +6,12 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正
# 如果用户输入的账号、密码正确,提示登陆成功
name=input("用户名")
password=input("密码")
if name==username and password==userpassword:
print("真确")
else:
print("错误")
while True :
name=input("用户名")
password=input("密码")
if name==username and password==userpassword:
break
print("你错了")
print("真确")
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