Appending a list to a list of lists

前端 未结 0 598
失恋的感觉
失恋的感觉 2021-01-02 02:39

In the following code, I am trying to append a list called a to a list of lists b.

a = [5,4]
b = [[4],[3],[8]]
b[2].append(a)

Python outputs<

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