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
时间: 2024-08-28 21:43:11