-5
我有陣列的列表看起來像這樣:轉換和格式列表,元組
c = [
[
[
[670515.231, 6577538.931, 51.703],
[670486.853, 6577531.536, 51.703],
[670488.927, 6577523.577, 51.703],
[670517.305, 6577530.971, 51.703],
[670515.231, 6577538.931, 51.703]
]
]
]
而且我想/格式轉換到陣列的一個元組:S:
new_c =(
[670515.231, 6577538.931, 51.703],
[670486.853, 6577531.536, 51.703],
[670488.927, 6577523.577, 51.703],
[670517.305, 6577530.971, 51.703],
[670515.231, 6577538.931, 51.703])
這樣做的最佳方法是什麼?
你想'元組(C [0] [0] )'? – ozgur
只是爲了澄清:從技術上講,這些列表不是數組。 :) – MSeifert