• 2022-05-27 问题

    Write down at least 5 words with "self" that can show Americnas'character.

    Write down at least 5 words with "self" that can show Americnas'character.

  • 2022-06-07 问题

    class Student: def __init__(self,n="xxx"): self.name=n def show(self): print(self.name) s=Student("yyy") s.show() 结果

    class Student: def __init__(self,n="xxx"): self.name=n def show(self): print(self.name) s=Student("yyy") s.show() 结果

  • 2022-06-07 问题

    class Person: def __init__(self,n="xxx"): self.name=n class Student(Person): def __init__(self,s="male"): self.sex=s def show(self): print(self.name,self.sex) s=Student("female") s.show() 结果:

    class Person: def __init__(self,n="xxx"): self.name=n class Student(Person): def __init__(self,s="male"): self.sex=s def show(self): print(self.name,self.sex) s=Student("female") s.show() 结果:

  • 2022-06-07 问题

    定义类的代码如下:class Person():def __init__(self,name):self.name=namedef show(self):print(self.name) A: p=Personp.show() B: p=Person()p.show('李思') C: p=Person('李思')p.show() D: p=Person('李思')show()

    定义类的代码如下:class Person():def __init__(self,name):self.name=namedef show(self):print(self.name) A: p=Personp.show() B: p=Person()p.show('李思') C: p=Person('李思')p.show() D: p=Person('李思')show()

  • 2022-06-07 问题

    class Student: def __init__(self,n="xxx",s="男"): self.name=n self.sex=s def show(self): print(s.name,s.sex) s=Student("yyy") Student.show(s) 结果:

    class Student: def __init__(self,n="xxx",s="男"): self.name=n self.sex=s def show(self): print(s.name,s.sex) s=Student("yyy") Student.show(s) 结果:

  • 2022-06-07 问题

    class Student: def __init__(self,n="xxx"): self.name=n def show(self): print(self.name)s=Student("yyy")s.show()结果 A: yyy B: xxx C: None D: 错误

    class Student: def __init__(self,n="xxx"): self.name=n def show(self): print(self.name)s=Student("yyy")s.show()结果 A: yyy B: xxx C: None D: 错误

  • 2022-06-07 问题

    class Person:def __init__(self,n="xxx"):self.name=nclass Student(Person):def __init__(self,s="male"):self.sex=sdef show(self):print(self.name,self.sex)s=Student("female")s.show()结果: A: xxx male B: xxx C: 结果错误 D: xxx female

    class Person:def __init__(self,n="xxx"):self.name=nclass Student(Person):def __init__(self,s="male"):self.sex=sdef show(self):print(self.name,self.sex)s=Student("female")s.show()结果: A: xxx male B: xxx C: 结果错误 D: xxx female

  • 2022-06-07 问题

    下面程序运行的结果是( )。class Person:def __init__(self,n="张三"): self.name=nclass Student(Person):def __init__(self,s="male"):self.sex=sdef show(self):print(self.name,self.sex)s=Student("female")s.show() A: 张三 male B: 张三 female C: 出错 D: 张三

    下面程序运行的结果是( )。class Person:def __init__(self,n="张三"): self.name=nclass Student(Person):def __init__(self,s="male"):self.sex=sdef show(self):print(self.name,self.sex)s=Student("female")s.show() A: 张三 male B: 张三 female C: 出错 D: 张三

  • 2022-06-07 问题

    下面程序的运行结果是( )。class Student:def __init__(self,n="张三"):self.name=ndef show(self):print(self.name)stu=Student("李四")stu.show() A: 张三 B: 李四 C: 张三 李四 D: 李四 张三

    下面程序的运行结果是( )。class Student:def __init__(self,n="张三"):self.name=ndef show(self):print(self.name)stu=Student("李四")stu.show() A: 张三 B: 李四 C: 张三 李四 D: 李四 张三

  • 2022-06-07 问题

    class Student: def __init__(self,n="xxx",s="男"): self.name=n self.sex=s def show(self): print(s.name,s.sex)s=Student("yyy")Student.show(s)结果: A: yyy 男 B: xxx 男 C: Student.show(s)错误 D: def __init__(self,n="xxx",s="男")错误

    class Student: def __init__(self,n="xxx",s="男"): self.name=n self.sex=s def show(self): print(s.name,s.sex)s=Student("yyy")Student.show(s)结果: A: yyy 男 B: xxx 男 C: Student.show(s)错误 D: def __init__(self,n="xxx",s="男")错误

  • 1 2 3 4 5 6 7 8 9 10