Python- After using combinations with replacement, how to remove tuples with combinations that I don't want

前端 未结 0 900
傲寒
傲寒 2021-02-04 23:13

I\'m trying to get a list of lists (or tuples) which follows a pattern something like this:

[1,1,1,2]
[1,1,2,2]
[1,2,2,2]
[1,2,2,3]
[1,2,3,3]
[1,2,3,4]

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