可以使用for循环嵌套,也可以使用product帮你生成。l1 =[1,2,3,4]l2 =['a','b','c','d']for i, j in product(l1, l2): print(i, j)1 a1 b1 c1 d2 a2 b2 c2 d3 a3 b3 c3 d4 a4 b4 c4 d
两个for循环