我非常清楚如何从列表中选择随机项目,random.choice(seq)但我如何知道该元素的索引?
random.choice(seq)
python random indexing choice
choice ×1
indexing ×1
python ×1
random ×1