資源簡介
pip相應(yīng)模塊以后,直接可以用,輸入路徑就行,記得路徑文件夾不要有doc、docx以外的文件
代碼片段和文件信息
from?win32com?import?client
import?os
import?string
import?random
x?=?0
path?=?input(r‘‘)
files?=?os.listdir(path)
for?file?in?files:
????list?=?[]
????x?+=?1
????allpath?=?os.path.join(pathfile)
????print?(allpath)
???#?word?=?client.Dispatch(‘Word.Application‘)
????doc?=?client.Disp
評論
共有 條評論