python:实现两个表的笛卡尔积
# Import
from itertools import product
# Cartesian Product of Two Lists
def cartesian_product(list1, list2):
"""Cartesian Product of Two Lists."""
for _i in list1:
# Import
from itertools import product
# Cartesian Product of Two Lists
def cartesian_product(list1, list2):
"""Cartesian Product of Two Lists."""
for _i in list1: