Commit e8ee228b by BellCodeEditor

save project

parent b7c528fd
Showing with 7 additions and 1 deletions
name=input("输入") name=input("输入min")
name=input("输入") name=input("输入")
i=3
username = "python" # 保存在服务器数据库中的用户账号(正确的) username = "python" # 保存在服务器数据库中的用户账号(正确的)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
while True: while True:
if i>0:
name=input("输入") name=input("输入")
password=input("") password=input("")
i-=1
if name==username and password==userpassword: if name==username and password==userpassword:
print("ok") print("ok")
break break
...@@ -13,6 +16,9 @@ while True: ...@@ -13,6 +16,9 @@ while True:
continue continue
elif password!=userpassword: elif password!=userpassword:
print("错误") print("错误")
elif:
print("")
exit()
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