python将一句话重复n次输出_如何仅使用itertools将Python列表的每个元素重复n次?...
I have a list with numbers:numbers = [1, 2, 3, 4].I would like to have a list where they repeat n times like so (for n = 3):[1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4].The problem is that I would like to onl...