所以我有一个这样的嵌套列表:
nested list=[['Bike No.,Purchase Date,Batt %,Last Maintenance,KM since Last'], ['T101,10/04/2016,55,10/01/2017,25.08'], ['T102,01/07/2016,10,15/05/2017,30.94'], ['T103,15/11/2016,94,13/06/2017,83.16'], ['T104,25/04/2017,58,10/01/2017,25.08'], ['T105,24/05/2017,5,20/06/2017,93.80']]
我希望将另一个元素添加到此列表中['自行车编号,购买日期,Batt%,上次维护,自上次以来的KM'],我该怎么做? 此列表最初是从csv文件创建的,并按其行后跟其元素
进行拆分答案 0 :(得分:0)
by coldspeed:
nested_list[0].append(...)