所以我在Python中有两个列表:
import random list_1 = ['1','2','3'] list_2 = ['4','5','6'] num = random.choice(list_1 or list_2)
这似乎不起作用。如何从列表 1 或列表 2 中获取随机数?
python random list
list ×1
python ×1
random ×1