How can I turn a list in python to a subset of lists?

前端 未结 0 869
孤独总比滥情好
孤独总比滥情好 2020-12-06 05:53

How can I turn a list like:

a = [1, 2, 3, 4, 5]

to something like:

b = [[1], [2], [3], [4], [5]]

I was thinki

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