问答详情
源自:2-3 抽取word文档文本内容

Mytxt.SaveAs (word2txtPath,4)

AttributeError: 'NoneType' object has no attribute 'SaveAs'

提问者:慕仰1230263 2020-05-19 11:41

个回答

  • 慕田峪8401036
    2022-09-08 06:34:57

    你的这段程序,当i=3的时候,循环条件不成立就直接退出了

    txihkzd

  • 慕婉清6349877
    2021-10-13 14:43:18

    我也是这个问题 word可以跑出来,pdf不行

  • vincent_duan
    2021-05-03 15:58:30

    mytxt = wordappp.Documents.Open(filePath)

    确保这句代码正确执行