首页 / 预测世界杯足球

已知域名如何知道网站的ip

2025-07-18 14:29:56预测世界杯足球 6144

A小面:

[code=python]

cls._instance = super(Singleton, cls).__new__(cls, *args, **kwargs)

TypeError: object.__new__() takes exactly one argument (the type to instantiate)

[/code]

直接运行会出现上面的错误,请问这个应该怎么办?刚学习有点解决不了。因为我想在singleton1 = Singleton(10)后面也print(singleton1.value)