sorted_bounds我想基于每个其他元组创建两个列表。
bounds = [1078.08, 1078.816, 1078.924, 1079.348, 1079.448, 1079.476]
sorted_bounds = list(zip(bounds,bounds[1:]))
print(sorted_bounds)
# -> [(1078.08, 1078.816), (1078.816, 1078.924), (1078.924, 1079.348), (1079.348, 1079.448), (1079.448, 1079.476)]
期望的输出:
list1 = [(1078.08, 1078.816), (1078.924, 1079.348), (1079.448, 1079.476)]
list2 = [(1078.816, 1078.924), (1079.348, 1079.448)]
我该怎么做?我完全一片空白。
烙印99
慕斯王
相关分类