[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fyTV7LnULU5ajY88OHeE0fZPOKOV8JEyye9_5SN_NgaA":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":29,"type":30},[],"2025-12-14 18:24:38",264627320,[8,9,10,11],"yyy","xxx","None","错误",{"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 Student: def __init__(self,n=&quot;xxx&quot;): self.name=n def show(self): print(self.name) s=Student(&quot;yyy&quot;)s.show()结果",[21,31,34,43,52,61,70,76,83,89],{"answer":22,"createTime":5,"id":23,"options":24,"question":28,"source":29,"type":30},[],264627319,[25,26,27,11],"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":32,"createTime":5,"id":6,"options":33,"question":19,"source":29,"type":30},[],[8,9,10,11],{"answer":35,"createTime":5,"id":36,"options":37,"question":42,"source":29,"type":30},[],264627321,[38,39,40,41],"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":44,"createTime":5,"id":45,"options":46,"question":51,"source":29,"type":30},[],264627322,[47,48,49,50],"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":53,"createTime":5,"id":54,"options":55,"question":60,"source":29,"type":30},[],264627323,[56,57,58,59],"aaa male","aaa female","yyy female","xxx 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":62,"createTime":5,"id":63,"options":64,"question":69,"source":29,"type":30},[],264627324,[65,66,67,68],"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":71,"createTime":5,"id":72,"options":73,"question":75,"source":29,"type":30},[],264627325,[8,9,11,74],"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":77,"createTime":5,"id":78,"options":79,"question":82,"source":29,"type":30},[],264627326,[59,80,81,9],"xxx male","结果错误","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()结果",{"answer":84,"createTime":5,"id":85,"options":86,"question":88,"source":29,"type":30},[],264627327,[8,9,11,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":29,"type":30},[],264627328,[93,94,47,11],"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()结果"]