Python 是否有一个内置方法,我可以以随机方式从两个不同的列表中获取几个值?
前任:
listOne = ['Blue', 'Red', 'Green']
listTwo = [1, 2, 3]
# I want to get the result:
# ('Blue',3),('Red',2),('Green',1)
# or ('Blue',2),('Red',3),('Green',1)
# or ('Blue',1),('Red',2),('Green',3)
# and so on...how can I use a method get this result in a random way?