count = 0 if count == 3: print('您的账户已冻结,请联系客服解冻') else: while count < 3: user = input('') pwd = input('') if user == 'alex' and pwd == '123' print('欢迎光临') break else: print('用户名或者密码错误') count = count + 1
count = 0 if count == 3: print('您的账户已冻结,请联系客服解冻') else: while count < 3: user = input('') pwd = input('') if user == 'alex' and pwd == '123' print('欢迎光临') break else: print('用户名或者密码错误') count = count + 1
转载于:https://www.cnblogs.com/Essaycode/p/10041115.html