python兩個列表做笛卡爾積

字號:


    import itertools
    for x in itertools.product([1,2,3,4],[2,3,4],[1,1,2,2,]):
    print x