创建和使用类 1.创建Dog类 根据Dog类创建的每个实例都将存储名字和年龄。我们赋予了每条小狗蹲下(sit())和打滚(roll_over())的能力: class Dog(): """一次模拟小狗的简单尝试""" def __init__(self, name, age):