LazyList ======== .. currentmodule:: deepfos.lib.utils .. autoclass:: LazyList :exclude-members: 元素延迟初始化的列表 元素的值只会在使用时被计算 >>> def call(*args): ... print('calc') ... return sum(args) >>> ll = LazyList() >>> ll.append(call, 1, 2, 3) >>> ll.append(call, 4, 5, 6) >>> ll[0] calc 6 >>> ll[0] 6 See Also: :class:`LazyDict` .. autosummary::