# 特征提取
pattern = re.compile(r"name:'(\w+)',\s+geoCoord:\[(\d+.\d+),\s(\d+.\d+)\]")
# 测试下正则表达式是否正确
test_string = "{name:'兰州', geoCoord:[103.73, 36.03]},"
test_re_result = pattern.findall(test_string)
# 应该输出('兰州', '103.73', '36.03')
print(test_re_result[0])
# 兰州,103.73,36.03
city,precision,dimension = test_re_result[0]
print(city)
print(precision)
print(dimension)