[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fA6nhzTLOLnAlpb86fI4RZn39P-Nsl7CSXiWS2hgsAxs":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2025-12-14 18:24:38",264627326,[8,9,10,11],"xxx female","xxx male","结果错误","xxx",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},55,"53e1d2ef4961cca8eea3e23969ad2cb9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","默认课程","work_49070530","作业_Python面向对象 > 作业5-1","class Person: def __init__(self,n=&quot;xxx&quot;): self.name=nclass Student(Person): def __init__(self,s=&quot;male&quot;): self.sex=s def show(self): print(self.name,self.sex)s=Student(&quot;female&quot;)s.show()结果",[21,32,39,48,57,65,74,80,83,89],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],264627319,[25,26,27,28],"yyy 30 yyy 30","yyy 30 xxx 20","xxx 20 xxx 20","错误","class Student: name=&quot;xxx&quot; age=20 s=Student()s.name=&quot;yyy&quot;s.age=30print(s.name,s.age,Student.name,Student.age)结果","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":38,"source":30,"type":31},[],264627320,[36,11,37,28],"yyy","None","class Student: def __init__(self,n=&quot;xxx&quot;): self.name=n def show(self): print(self.name) s=Student(&quot;yyy&quot;)s.show()结果",{"answer":40,"createTime":5,"id":41,"options":42,"question":47,"source":30,"type":31},[],264627321,[43,44,45,46],"yyy 20 xxx 30","yyy 20 zzz 30","xxx 20 yyy 30","xxx 20 zzz 30","class Student: name=&quot;yyy&quot; age=30 def __init__(self): self.name=&quot;xxx&quot; self.age=20 s=Student()Student.name=&quot;zzz&quot;print(s.name,s.age,Student.name,Student.age)结果",{"answer":49,"createTime":5,"id":50,"options":51,"question":56,"source":30,"type":31},[],264627322,[52,53,54,55],"yyy 男 20","yyy 男 30","xxx 男 30","xxx 男 20","class Student: age=20 def __init__(self,n=&quot;xxx&quot;,s=&quot;男&quot;): self.name=n self.sex=s def show(self): print(s.name,s.sex,s.age) s=Student(&quot;yyy&quot;)s.age=30s.show()结果",{"answer":58,"createTime":5,"id":59,"options":60,"question":64,"source":30,"type":31},[],264627323,[61,62,63,8],"aaa male","aaa female","yyy female","class Person: def __init__(self,n=&quot;xxx&quot;): self.name=nclass Student(Person): def __init__(self,n=&quot;aaa&quot;,s=&quot;male&quot;): Person.__init__(self) self.sex=s def show(self): print(self.name,self.sex)s=Student(&quot;yyy&quot;,&quot;female&quot;)s.show()结果",{"answer":66,"createTime":5,"id":67,"options":68,"question":73,"source":30,"type":31},[],264627324,[69,70,71,72],"yyy 男","xxx 男","Student.show(s)错误","def __init__(self,n=&quot;xxx&quot;,s=&quot;男&quot;)错误","class Student: def __init__(self,n=&quot;xxx&quot;,s=&quot;男&quot;): self.name=n self.sex=s def show(self): print(s.name,s.sex) s=Student(&quot;yyy&quot;)Student.show(s)结果",{"answer":75,"createTime":5,"id":76,"options":77,"question":79,"source":30,"type":31},[],264627325,[36,11,28,78],"xxxyyy","class Student: def __init__(self,n=&quot;xxx&quot;): self.name=n @classmethod def show(cls): s=cls() print(s.name) s=Student(&quot;yyy&quot;)Student.show(s)结果",{"answer":81,"createTime":5,"id":6,"options":82,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":84,"createTime":5,"id":85,"options":86,"question":88,"source":30,"type":31},[],264627327,[36,11,28,87],"yyyxxx","class Student: def __init__(self,n=&quot;xxx&quot;): self.name=n @classmethod def show(cls): s=cls() print(s.name) s=Student(&quot;yyy&quot;)s.show()结果",{"answer":90,"createTime":5,"id":91,"options":92,"question":95,"source":30,"type":31},[],264627328,[93,94,52,28],"yyy 男 0","yyy 男 None","class Student: def __init__(self,n=&quot;xxx&quot;,s=&quot;男&quot;): self.name=n self.sex=s def show(self): print(s.name,s.sex,s.age) s=Student(&quot;yyy&quot;)s.age=20s.show()结果"]