📅  最后修改于: 2022-03-11 14:47:10.902000             🧑  作者: Mango
a = [1, 2, 3]
b = ["a", "b", "c"]
index = pd.MultiIndex.from_product([a, b], names = ["a", "b"])
pd.DataFrame(index = index).reset_index()