python第一期作业

# Author"David.z
user = "david"
password = "aa1234"
count=0
while count<3:
    login_user=input("Please key username:")
    login_password=input("Please key password:")
    if login_user==user and login_password==password:
        print ("Welcome to the program!!!")
    else:
        print("enter error!")
    count +=1
    if count==3:
        print ("enter times out!!!")
        break

 

posted @ 2018-01-10 09:38  逍遥姐夫  阅读(145)  评论(0编辑  收藏  举报