小编use*_*257的帖子

在Python中设置分区

我有一个数组 [1,2,3]

我想使用数组的所有元素进行所有可能的组合:

结果:

[[1], [2], [3]]
[[1,2], [3]]
[[1], [2,3]]
[[1,3], [2]]
[[1,2,3]]
Run Code Online (Sandbox Code Playgroud)

python arrays combinatorics

32
推荐指数
3
解决办法
1万
查看次数

标签 统计

arrays ×1

combinatorics ×1

python ×1