我想将参数传递为a,b,c,d值的组合。
a = [1,2,3,4,5,6,7,8,9]
b = [5,6,7,8,9,10,11,12,13,14,15]
c = [1,2,3,4,6,12,18]
d = [1,2,3,4,6,12,18,24]
results = []
这是我的玩法:
def calc(a,b,c,d):
....
我要它运行calc(1,5,1,1)然后运行calc(1,5,1,2) . calc(1,5,1,24) calc(1,5,2,1) calc(1,5,2,24) calc(1,6,1,1) calc(1,6,18,24) calc(2,5,1,1) ca