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
原文地址:https://www.cnblogs.com/davidz/p/8256976.html