Python itertool - zhongjiajie/zhongjiajie.github.com GitHub Wiki Python-itertools itertools product 获取列表的笛卡尔积 import itertools for element in itertools.product(list1, list2, list3): print(element) 更原始的方式是通过列表解析获得多个列表的笛卡尔积 [[i, j] for i in list1 for j in list2] ⚠️ **GitHub.com Fallback** ⚠️