• 大小: 606B
    文件类型: .py
    金币: 1
    下载: 0 次
    发布日期: 2021-06-02
  • 语言: Python
  • 标签: python  

资源简介

pip相应模块以后,直接可以用,输入路径就行,记得路径文件夹不要有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

评论

共有 条评论