# 保存图片
def parse_save_tile(self, response):
r = response.body
with open('D://fgq//baiduimgs//' + str(img_name) + '.png', 'wb') as f:
f.write(r)
f.close()
print("save pic success")
#写入文件 切记str的使用 否则无效
with open('data.txt', 'a+') as ff:
ff.write(str(item["road_pano_lon"]) + "," + str(item["road_pano_lat"]) + '\n')
ff.close()
#路径拼接 切记str的使用 否则无效
img_name = item['road_pano_panoid'] + '_4' + '_' + str(item['road_pano_x']) + '_' + str(item['road_pano_y'])