Commit eee318d1 by BellCodeEditor

save project

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