Commit 2b55a9bd by BellCodeEditor

save project

parent d46a37b0
Showing with 11 additions and 13 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" userpassword = "123456"
while True: while True:
pass name=input("請輸入賬戶名稱:")
name=input("請輸入賬戶名稱:") password=input("請輸入密碼:")
password=input("請輸入密碼:") if name==username and password==userpassword :
if name==username and password==userpassword : break
break if name!=username:
print("密碼輸入錯誤") print("請重新輸入")
print("登陸成功!") continue
input("You a pig!hhhhhh") if password!=userpassword:
if name!=username print("請重新輸入")
print("請重新輸入") print("登陸成功!")
if password!=userpassword
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