python常量修饰符在应用于函数时不接受self我做了一个像这样的装饰 def constant(f): def fset(self, value): raise TypeError @wraps(f) def fget(sel ...2024-04-29 已阅读: n次