list操作 foreach和for的区别

foreach只是简单的遍历读取,不能在循环中进行remove等操作。

for可以

原文地址:https://www.cnblogs.com/lb12081116/p/4384587.html