第一周练习 --- 登陆程序

#登陆程序

#Login——by Lief

username='Lief'
password='88888888'
count=0
while count<3:
    UN=input('Please type your username here: ')
    PW=input('Please type your password here: ')
    if UN==username and PW==password:
        print("You're in!")
        break
    else:
        print('Try again!')
        count+=1
else:
    print("You've tried too many times and you're locked!")

 

posted @ 2018-03-11 21:34  Lief_1997  阅读(131)  评论(0)    收藏  举报