python进行切片修改还是很容易的。In [1]: a = [[1,2,3],[4,5,6]]In [2]: aOut[2]: [[1, 2, 3], [4, 5, 6]]取索引0的 0到2的切片(不包含索引2)In [3]: a[0][0:2] Out[3]: [1, 2]对索引0切片赋值In [4]: a[0][0:2] = [2,3]In [5]: aOut[5]: [[2, 3, 3], [4, 5, 6]]