题库 Python题库 题目列表 有如下程序段:class xcal: &...
单选题

有如下程序段:

class xcal:
    def __init__(self,numx,numy):
        self.numx=numx
        self.numy=numy
    def xadd(self,another):
        numx=self.numx*another.numx
        numy=self.numy*another.numy
        return xcal(numx,numy)
    def print(self):
        print(str(self
            
A.

6/20

B.

15/8

C.

10/12

D.

8/15

题目信息
2023年 6月 选择题
100%
正确率
0
评论
53
点击