笛卡尔积(两两配对)
2021-11-29 本文已影响0人
山猪打不过家猪
方法一
# a =[50006843,30,1]
# b= ['品牌词','搜索词']
# import itertools
#
# c =[x for x in itertools.product(a,b)]
# print(c)
方法二:
# e =[(i,'品牌词') for i in a ]+[(i,'搜索词') for i in a ]
方法一
# a =[50006843,30,1]
# b= ['品牌词','搜索词']
# import itertools
#
# c =[x for x in itertools.product(a,b)]
# print(c)
方法二:
# e =[(i,'品牌词') for i in a ]+[(i,'搜索词') for i in a ]