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)