解决Python 遍历字典时删除元素报异常的问题 错误的代码① d = { a :1, b :0, c :1, d :0} for key, val in d items(): del(d[k]) 错误 python编程 2022-04-19 209 点赞 3 评论 316 浏览