Commit eee318d1 by BellCodeEditor

save project

parent f060cfa5
Showing with 16 additions and 9 deletions
i=3
username = "sb" # 保存在服务器数据库中的用户账号(正确的账号) username = "sb" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "54088" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "54088" # 保存在服务器数据库中的用户密码(正确的密码)
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
while True: while True:
name=input("输入:") if i>0:
password=input("输入密码:") name=input("输入:")
if name ==username and password == userpassword: password=input("输入密码:")
print("成功") i-=1
break if name ==username and password == userpassword:
elif name != username: print("成功")
print("名字错") break
else password != userpassword: elif name != username:
print("密码错") print("名字错")
continue
else:
print("密码错")
else:
print("锁定账号,你个*********")
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