用户三次登陆小程序

count=0
while count<3:
    user=input('>>>:')
    pwd=input('>>>:')
    if user=='alex' and pwd=='123':
        print('welcome')
        print('..........')
        break
    else:
        print('user or pwd erro')
    count=count+1

 

posted on 2018-11-07 11:06  库茨  阅读(92)  评论(0)    收藏  举报