Commit 2b55a9bd by BellCodeEditor

save project

parent d46a37b0
Showing with 7 additions and 9 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
print("密碼輸入錯誤") if name!=username:
print("登陸成功!")
input("You a pig!hhhhhh")
if name!=username
print("請重新輸入") print("請重新輸入")
if password!=userpassword continue
if password!=userpassword:
print("請重新輸入") 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