flag = 0 # 标志旗帜
for i in range(3):
userneame = input("请输入用户名:")
password = input("请输入密码:")
if userneame == "Weihai" and password == "123456":
print("登录成功")
flag = 1
break
else:
print("用户名或密码错误!")
if flag == 0:
print("输入的用户名或密码错误次数太多,账户已被锁定")
07-21
1万+
01-07
1331
10-30
60