Commit 0fc55a05 by BellCodeEditor

save project

parent 4feeadfc
Showing with 6 additions and 5 deletions
i=5
username = "wang820808" # 保存在服务器数据库中的用户账号(正确的账号) username = "wang820808" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "z0914w0808" # 保存在服务器数据库中的用户密码(正确的) userpassword = "z0914w0808" # 保存在服务器数据库中的用户密码(正确的)
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("正确正确") print("正确正确")
break break
...@@ -11,6 +14,9 @@ while True: ...@@ -11,6 +14,9 @@ while True:
if name != username: if name != username:
print("错误,账号") print("错误,账号")
continue continue
else:
print("错误")
exit()
print("欢迎进入") print("欢迎进入")
...@@ -54,8 +60,3 @@ print("欢迎进入") ...@@ -54,8 +60,3 @@ 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