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

 

posted @ 2018-11-29 21:47  爱跑步的乌龟  阅读(174)  评论(0编辑  收藏  举报