[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f4RNxDFL0fJIp2MgN5vEeyoRv4qvbUlm1UtmZU-5tGB8":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",264627324,[8,9,10,11],"yyy 男","xxx 男","Student.show(s)错误","def __init__(self,n=&quot;xxx&quot;,s=&quot;男&quot;)错误",{"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;,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)结果",[21,32,40,49,58,67,70,76,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":39,"source":30,"type":31},[],264627320,[36,37,38,28],"yyy","xxx","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":41,"createTime":5,"id":42,"options":43,"question":48,"source":30,"type":31},[],264627321,[44,45,46,47],"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":50,"createTime":5,"id":51,"options":52,"question":57,"source":30,"type":31},[],264627322,[53,54,55,56],"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":59,"createTime":5,"id":60,"options":61,"question":66,"source":30,"type":31},[],264627323,[62,63,64,65],"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":68,"createTime":5,"id":6,"options":69,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":71,"createTime":5,"id":72,"options":73,"question":75,"source":30,"type":31},[],264627325,[36,37,28,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":30,"type":31},[],264627326,[65,80,81,37],"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":30,"type":31},[],264627327,[36,37,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,53,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()结果"]