Python get all permutations but first digit has to be even, second odd, third even, etc

前端 未结 0 453
天命终不由人
天命终不由人 2021-01-23 05:53

I have a list called nums nums = [0,1,2,3,4,5,6,7,8,9] Now i want to get all combinations, but those combinations have to fulfill the following condition: The first

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