小编xn1*_*xn1的帖子

有没有办法将此嵌套循环更改为递归循环?

I'm looking for help on the following problem. I have a small program that is part of a much larger program, I need to loop through every combination of an array of number from 1 to 10 (maybe more or less) in the same way itertools works. However because I have certain restrictions, I have a need to skip a large number of these combinations to save time as this could potentially get very large.

Here is my program

combination …
Run Code Online (Sandbox Code Playgroud)

python recursion loops for-loop

7
推荐指数
1
解决办法
1317
查看次数

标签 统计

for-loop ×1

loops ×1

python ×1

recursion ×1