def dress_me(l1, l2, l3):
res = []
for i in l1:
for j in l2:
for k in l3:
res.append((i, j, k))
return res
shirts = ['white', 'blue']
ties = ['purple', 'yellow']
suits = ['grey', 'blue']
if __name__ == '__main__':
combinations = dress_me(shirts, ties, suits)
for combo in combinations:
print(combo)
救人。在
相关问题 更多 >
编程相关推荐