随笔分类 - Python 内置装饰器
摘要:@total_ordering class Student: def __eq__(self, other): return ((self.lastname.lower(), self.firstname.lower()) == (other.lastname.lower(), other.firs
阅读全文
摘要:源码: class locked_cached_property(object): """A decorator that converts a function into a lazy property. The function wrapped is called the first time
阅读全文

浙公网安备 33010602011771号