main
黄海 9 months ago
parent 6837a9326a
commit 5a8a0517e2

@ -93,7 +93,7 @@ for root, dirs, files in os.walk(working_dir):
filtered_string = re.sub(r'[^\u4e00-\u9fa5a-zA-Z0-9]', '', original_string)
fileName = '' + str(idx) + '' + filtered_string + ".xlsx"
# 在城市文件夹下,查看是不是存在县区的子文件夹,如果不存在则创建
county_sub_dir = os.path.join(city_dir, county_name)
county_sub_dir = os.path.join(city_dir, areaName)
if not os.path.exists(county_sub_dir):
os.mkdir(county_sub_dir)
wb.save(county_sub_dir + '/' + fileName)

Loading…
Cancel
Save