我有一个列表列表
w = [['2', '22', '32', '44', '55', '66', '69', '94'], ['22', '24', '49', '74', '90', '113', '130', '140']]
必须从中派生一个新的列表列表,其中:even indices will have 1 subtracted from them
和处的所有元素all odd indices will have 1 added to them
。所以上面的列表看起来像:
x = [['1','23','31','45','54','67','68','93'],['21','25','48','75','89','114','129','141']]
任何帮助将不胜感激。