举例:string1 = [ [113,33], [55,44], [111,28], [100,30] ]
// 去掉首尾的方括号,并按逗号和中括号拆分字符串
String[] elements = tcfwzbdjh.substring(2, tcfwzbdjh.length() - 2).split("\\],\\[");
List<List<Double>> resultList = new ArrayList<>();
for (String element : elements) {
String[] parts = element.split(","); //注意这一步是吧[1,2]整体当成一个元素,而不是只取1或2
List<Double> tempList = new ArrayList<>();
for (String part : parts) {
tempList.add(Double.parseDouble(part));
}
resultList.add(tempList);
}
System.out.println("resultList="+resultList);