何千もの要素のリストをスライスするための効率的な方法とコード保存を知りたい
例:
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"]