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