>>> import itertools>>> map(''.join, itertools.chain(itertools.product(list1, list2), itertools.product(list2, list1)))['squarered', 'squaregreen', 'circlered','circlegreen', 'trianglered', 'trianglegreen','redsquare', 'redcircle', 'redtriangle', 'greensquare','greencircle', 'greentriangle']
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)