class A: def __init__(self,xx,yy): self.x=xx self.y=yy def add(self): print("x和y的和为:%d"%(self.x+self.y)). B.py文件: from A import A ...
確定! 回上一頁