示例二: 使用lambda 函数。 q = defaultdict(lambda: [0, 0, 0]) print(q['a']) # 输出 # [0, 0, 0]. 看完上述内容是否对您有帮助呢?如果还想对相关 ...
確定! 回上一頁