我想知道一种有效的方法和代码保存来分割数千个元素的列表
例子:
b = ["a","b","c","d","e","f","g","h"]
index = [1,3,6,7]
我希望结果如下:
c = ["b","d","g","h"]
我想知道一种有效的方法和代码保存来分割数千个元素的列表
例子:
b = ["a","b","c","d","e","f","g","h"]
index = [1,3,6,7]
我希望结果如下:
c = ["b","d","g","h"]