Python随心记--用户登录锁定

count = 0
if count == 3print('您的账户已冻结,请联系客服解冻')
elsewhile 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