Python学习笔记-函数
def describe_pet(pet_name, animal_type='dog'): """Display information about a pet.""" print("\nI have a " + animal_type + ".") print("My " + animal_type + "'s name is " + pet_name.title() + ".") # A dog named Willie.describe_pet('willie'.
原创
2021-08-20 00:23:56 ·
136 阅读 ·
0 评论