How do you delete an item in a lists of lists based on a condition in python?

后端 未结 0 1108
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-05 09:10

for example list = [[1,2,3], [4,5,6,3], [3,7,8,9,10,11,12]] I would like to delete all occurrences of the number 3. The new list should be: [[1, 2], [4, 5, 6], [7, 8, 9, 10, 11,

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