Commit 2ae43286 by BellCodeEditor

save project

parent 6cec1ecb
Showing with 11 additions and 7 deletions
...@@ -2,18 +2,22 @@ i=3 ...@@ -2,18 +2,22 @@ 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
if name==username and password==userpassword : if name==username and password==userpassword :
break break
elif name!=:username elif name!=:username
print("xxx") print("xxx")
elif password!=:userpassword print("溫馨提示,您還有"+str(i)+"次機會")
print("xxx") elif password!=:userpassword
exit() print("xxx")
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