📜  使用 for 循环递增 dic - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:58.603000             🧑  作者: Mango

代码示例1
a = defaultdict(int)
a['asdf'] += 1
# a['asdf'] will now be 1, since it updates from 0