对可迭代数据类型进行for遍历取值,str list tuple dict set range在循环过程中不能对list、dict进行删除操作。
python基础之for循环
原文:https://www.cnblogs.com/meifei/p/11395929.html