格式: def str(self): return ‘我是%s’ %(self.name) 返回必须是一个字符串 例如: 需求 1.小明和小美都爱跑步 2.小美体重45.0公斤 3.小明体重75.0公斤 4.每次跑步都会减少0.5公斤 5.每次吃东西都会增加1公斤 代码: