在线名词解释大全
专业、全面、易懂的全领域名词百科

13 Whatwillbedisplayedbythefollowingcode?()class A:def __init__(self,i= 2,j= 3):self.i=iself.j=jdef __str__(self):return "A"def __eq__(self,other):return self.i*self.j==other.i*other.jdef main():x=A(1, 2)y=A(2, 1)print(x==y)main()

题型:单选题
选项
A. True
B. False
C. 2
D. 1
正确答案: