摘要: from collections import defauldict a = defaultdict(lambda: len(a)) # a dict with auto increasing value def inc(i=-1): def f(): nonlocal i i+=1 return 阅读全文
posted @ 2021-03-10 15:48 e-yi 阅读(20) 评论(0) 推荐(0)