Commit 1ed486b7 by BellCodeEditor

save project

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