使用
numpy.repeat
np.repeat(np.arange(c.size), c)
上一篇 来自字符串或包数据的pandas.read_csv
下一篇 在Python中睡着了
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号