不知道你想要輸出哪裡一種結果:
以下兩種,有可能其中一種是你要的
- list_001 = [9.1454247, 53.48538079999999, 9.01548, 53.16778, 9.1434819, 53.4873555, 9.1451686, 53.48564990000001, 9.14256, 53.48726, 9.1393, 53.48882, 9.145203, 53.4865261, 9.1449977, 53.4899644, 9.1448787, 53.4857361, 9.14495, 53.48965, 9.145296799999999, 53.485342, 9.1447931, 53.4865513, 9.1454247, 53.48538079999999]
- for i, num1 in enumerate(list_001):
- k1 = list_001[i]
- k2 = list_001[i+1]
- print(num1)
- print(k1)
- print(k2)
复制代码
- list_001 = [9.1454247, 53.48538079999999, 9.01548, 53.16778, 9.1434819, 53.4873555, 9.1451686, 53.48564990000001, 9.14256, 53.48726, 9.1393, 53.48882, 9.145203, 53.4865261, 9.1449977, 53.4899644, 9.1448787, 53.4857361, 9.14495, 53.48965, 9.145296799999999, 53.485342, 9.1447931, 53.4865513, 9.1454247, 53.48538079999999]
- for i in range(0, len(list_001), 2):
- k1 = list_001[i]
- k2 = list_001[i+1]
- print(i)
- print(k1)
- print(k2)
复制代码 |