The pythonic way to generate pairs

前端 未结 7 1041
轮回少年
轮回少年 2020-12-30 20:00

I want something like code below, but \"pythonic\" style or using standard library:

def combinations(a,b):
    for i in a:
        for j in b:
             y         


        
7条回答
提交回复
热议问题