Cleaner way to Pop item in list of list

后端 未结 0 1582
北海茫月
北海茫月 2021-01-29 09:16

I have a list of lists:

a = [[1,2,\'a\',\'b\'],[3,4,\'c\',\'d\'],[5,6,\'e\',\'f\']]

and I want the result:

[[1,2],[3,4],[5,6]]
and         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题