# 数组的移除 arr = ['a','b','c'] arr.remove('b') print(arr)
arr = ['a','b','c'] for item in arr: if item=='b': arr.remove('b') print(arr)
# 数组的移除 arr = ['a','b','c'] arr.remove('b') print(arr)
arr = ['a','b','c'] for item in arr: if item=='b': arr.remove('b') print(arr)