#输入三次用户名和密码
#正确显示欢迎
#超过三次锁定
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:wanan
username ="wanan"
password ="abc123"
loca_usr =[]
count =0
while count<3:
loginName =input("loginName:")
loginPassword =input("loginPassword:")
if loginName ==username and loginPassword ==password:
print("Welcome to login")
break
else:
loginName != username or loginPassword != password
if count <2:
print("用户名或密码不正确,请重新输入")
else:
loca_usr.append(username)
print("输错三次,用户名密码被锁定")
# print(loca_usr)
count += 1