📜  迭代列表并一起选择2个值python代码示例

📅  最后修改于: 2022-03-11 14:45:32.530000             🧑  作者: Mango

代码示例1
>>> lis = (669256.02, 6117662.09, 669258.61, 6117664.39, 669258.05, 6117665.08)
>>> it = iter(lis)
>>> for x in it:
...     print (x, next(it))
...     
669256.02 6117662.09
669258.61 6117664.39
669258.05 6117665.08