【发布时间】:2016-07-23 06:13:48
【问题描述】:
arr1=['One','Two','Five'],arr2=['Three','Four']
赞itertools.combinations(arr1,2)给我们('OneTwo','TwoFive','OneFive')
我想知道有没有办法将它应用于两个不同的数组。我的意思是 arr1 和 arr2。
Output should be OneThree,OneFour,TwoThree,TwoFour,FiveThree,FiveFour
【问题讨论】:
标签: python arrays python-3.x python-3.4 itertools