📜  pytohn 将所有字典值重置为 0 - Python 代码示例

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

代码示例1
Dict.update({}.fromkeys(Dict,0))
#Replace Dict with the name of your dictionary, and 0 with the value 
#you want to reset all the keys too