Commit 2ae43286 by BellCodeEditor

save project

parent 6cec1ecb
Showing with 6 additions and 2 deletions
...@@ -2,7 +2,7 @@ i=3 ...@@ -2,7 +2,7 @@ i=3
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" userpassword = "123456"
while True: while True:
if i>0 if i>0:
name=input("請輸入賬戶名稱:") name=input("請輸入賬戶名稱:")
password=input("請輸入密碼:") password=input("請輸入密碼:")
i-=i i-=i
...@@ -10,10 +10,14 @@ while True: ...@@ -10,10 +10,14 @@ while True:
break break
elif name!=:username elif name!=:username
print("xxx") print("xxx")
print("溫馨提示,您還有"+str(i)+"次機會")
elif password!=:userpassword elif password!=:userpassword
print("xxx") print("xxx")
exit() print("溫馨提示,您還有"+str(i)+"次機會")
else:
exit()
print("nima")
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