向函數傳遞信息:
def describe_pet(pet_name, animal_type='dog'):
'''顯示寵物的信息'''
print(' I have a ',animal_type)
print("My ", animal_type ,"'s name is ", pet_name.title(),".")
def describe_pet(pet_name, animal_type='dog'):
'''顯示寵物的信息'''
print(' I have a ',animal_type)
print("My ", animal_type ,"'s name is ", pet_name.title(),".")