shujusenlin / mafengwo_data

21 stars 22 forks source link

请求城市列表xlsx #3

Open thecodeoflynn opened 6 years ago

thecodeoflynn commented 6 years ago

项目中没有城市列表excel,希望owner把表格上传上来

Tony8005 commented 6 years ago
    city = pd.DataFrame({'city': city_name_list, 'id': city_url_list})
    writer = pd.ExcelWriter('城市编号.xlsx')
    city.to_excel(writer, 'Sheet1')
    writer.save()