這裏是數據我有:提取元件,以形成一個二維數組在Python
[('600855+600860', 0.17285466741397107), ('600841+600984', 0.22412665503906901), ('600860+600984', 0.32286764496195208), ('600815+600841', 0.33635550553792876), ('600841+600860', 0.39050910738491346), ('600815+600860', 0.40568508088748162), ('600841+600855', 0.41509110502628777), ('600855+600984', 0.44548966249191208), ('600815+600855', 0.46775374453232454), ('600815+600984', 0.59956672168742298)]
我想提取,說元件like'600855 + 600860' 以形成在此的2D陣列方式:
[[600855,600860], [600841,600984]......]
怎麼辦? 謝謝。
你有沒有嘗試過做自己? –
@NamanSogani。感謝您的建議。我想了一段時間,但沒有拿出一個好方法, – epx