题目详情
单选题 class Person: def __init__(self,n="xxx"): self.name=nclass Student(Person): def __init__(self,n="aaa",s="male"): Person.__init__(self) self.sex=s def show(self): print(self.name,self.sex)s=Student("yyy","female")s.show()结果
A. aaa male
B. aaa female
C. yyy female
D. xxx female

学科:默认课程
时间:2025-12-14 10:24:38
相关题目
相关作业
