Getting all possible value combinations

后端 未结 1 632
天涯浪人
天涯浪人 2021-01-23 12:40

For an automatic test thing, I have a class with ~15 parameters. I want to automatically generate instances of the class for every possible value combination. For instance, if t

1条回答
  •  孤城傲影
    2021-01-23 13:03

    itertools.product()

    0 讨论(0)
提交回复
热议问题