main
黄海 9 months ago
parent b58afeaeec
commit 06cfed7ed7

@ -1,4 +1,6 @@
import os
import time
import win32com
from win32com.client import Dispatch
import re
@ -96,6 +98,8 @@ for root, dirs, files in os.walk(working_dir):
continue
print("正在处理" + cityName + " " + areaName + "...")
# 使用word读取图表的技术保存EXCEL文件到城市的目录下
# 休息3秒防止WORD打开频繁造成错误
time.sleep(3)
doc = docApp.Documents.Open(file_path)
# 遍历文档中所有的文字段落,判断是不是以 图+数字开头
idx = 1

@ -7,4 +7,5 @@
洱源县
文山市
西山区
昭阳区
昭阳区
鲁甸县
Loading…
Cancel
Save