📅  最后修改于: 2022-03-11 14:45:43.111000             🧑  作者: Mango
a = ["foo", "melon"]
b = [True, False]
c = list(itertools.product(a, b))
>> [("foo", True), ("foo", False), ("melon", True), ("melon", False)]