阅读以下代码,四个选项中说法正确的是( )
2023-04-20
为您查询到如下内容:
class( )parent:
def __init__(self,param):
self.v1=param
class( )child(parent):
def __init__(self,param):
parent.__init__(self,param)
self.v2=param
odj=child(100)
A、print(odj.v1==odj.v2)会报错。
B、print(odj.v1)值为100。
C、print(odj.v1)值为0。
D、print(odj.v1==odj.v2)结果为False。
参考答案:C
![]( //img1.runjiapp.com/duoteimg/tiku/images/pc/questionBank/main-list-title-icon.png)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_15.jpg)
2023-06-14
竞赛及其他题库
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_66.jpg)
2023-06-14
竞赛及其他题库
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_18.jpg)
2023-06-14
竞赛及其他题库
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_74.jpg)
发展创新型经济,要强调第一生产力和第一资源在提高科技创新能力的作用。
2023-06-14
竞赛及其他题库
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_54.jpg)
当今世界,谁牵住了()这个“牛鼻子”,谁就能占领先机,赢得优势。
2023-06-14
竞赛及其他题库
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_42.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_68.jpg)
2023-06-14
竞赛及其他题库
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_45.jpg)
用立铣刀或牛鼻子刀(环形刀)进行曲面粗加工,吃刀量大、加工效率高。()
2023-06-14
竞赛及其他题库
热门标签