在线名词解释大全 - Python程序设计 - 详细

3 Whatistheoutputofthefollowingcode?()class ParentClass:def __init__(self):self.__x= 1self.y= 10def print(self):print(self.__x,self.y)class ChildClass(ParentClass):def __init__(self):super().__init__()self.__x= 2self.y= 20c=ChildClass()

A
print()
B
1 10
C
1 20
D
2 10
E
2 20
正确答案:
相关推荐
扫描二维码
关注公众平台