运行下方代码段,屏幕上会打印出一个整数,则①处可以填写( )。class convert: def __init__(self,name):__________self.name = name__________self.__num = 4 def to_int(self):__________return int(self.name)n = convert(8.5)print(①)
(A)n.num
(B)n.to_int
(C)n.num()
(D)n.to_int()
参考答案
继续答题:下一题