#2
自由而无用2021-10-12 16:56
|
程序代码:
class TreeNode(object):
def __int__(self, MyAttribute, SonAttribute, FartherValue, Result):
self.MyAttribute = MyAttribute
self.SonAttribute = SonAttribute
self.FartherValue = FartherValue
self.Result = Result
Node1 = TreeNode(2, 3, 4, 5)
print(Node1.MyAttribute)
print(Node1.SonAttribute)
为什么编译器一直显示实例化对象的时候参数有问题啊,但是我看别人电脑有没有问题 难道是我电脑的问题吗