peak_valleys: list[PeakValleyDto]
group_every_two = [peak_valleys[i:i + 2] for i in range(0, len(peak_valleys), 2)]
python list拆成两个一组
最新推荐文章于 2023-09-17 16:15:37 发布
peak_valleys: list[PeakValleyDto]
group_every_two = [peak_valleys[i:i + 2] for i in range(0, len(peak_valleys), 2)]