我认为你正在寻找 product 函数: a = [1, 2] b = [100, 200] c = [1000, 2000] import itertools for p in itertools.product(a, b, c): print p 输出: (1, 100, 1000) (1, 100, 2000) (1, 200, 1000) (1, 200, 2000) (2, 100, 1000) (2, 100, 2000) (2, 200, 1000) (2, 200, 2000)