假设我有一个定义__slots__的类: class Foo(object): __slots__ = [x] def __init__(self, x=1): self.x = x # will the following work? def __setattr__(self, key, value): if key ==
在线咨询:
邮箱: xwei067@foxmail.com
工作时间:周一至周五,9:00-17:30,节假日休息