我有以下内容:
CCM = ([
[1.06301910149183, 0.00722151174898679, -0.0646501819773272],
[0.0343462908139148, 0.93978476472001, 0.016122360796017],
[0.000718294712585651, 0.0672092385672176, 0.867165723476061]
],)
我希望将其转换为:
CCM = [
[1.06301910149183, 0.00722151174898679, -0.0646501819773272],
[0.0343462908139148, 0.93978476472001, 0.016122360796017],
[0.000718294712585651, 0.0672092385672176, 0.867165723476061]
]
我尝试了以下内容:
ccm = list(CCM)
CCM = [list(item) for item in ccm]
但我得到了:
CCM=[[
[1.06301910149183, 0.00722151174898679, -0.0646501819773272],
[0.0343462908139148, 0.93978476472001, 0.016122360796017],
[0.000718294712585651, 0.0672092385672176, 0.867165723476061]
]]
这不是我想要的。
谢谢