peak_valleys: list[PeakValleyDto]
group_every_two = [peak_valleys[i:i + 2] for i in range(0, len(peak_valleys), 2)]
python list拆成两个一组
最新推荐文章于 2024-06-27 23:55:41 发布
peak_valleys: list[PeakValleyDto]
group_every_two = [peak_valleys[i:i + 2] for i in range(0, len(peak_valleys), 2)]