代码 import json ori_input = "[[1,0.1,0.2],[0.1,1,0.3],[0.2,0.3,1]]" ori_input_matrix = json.loads(ori_input) #ori_input_matrix 为列表类型<class 'list'>