Commit 6cec1ecb by BellCodeEditor

save project

parent ab7d8122
Showing with 12 additions and 8 deletions
i=3
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" userpassword = "123456"
while True: while True:
name=input("請輸入賬戶名稱:") if i>0
password=input("請輸入密碼:") name=input("請輸入賬戶名稱:")
if name==username and password==userpassword : password=input("請輸入密碼:")
break i-=i
elif name!=:username if name==username and password==userpassword :
print("xxx") break
elif password!=:userpassword elif name!=:username
print("xxx") print("xxx")
elif password!=:userpassword
print("xxx")
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