这是我用作者的代码跑的
E:\Anaconda3\envs\tensorflow-cpu\python.exe E:/mypython/文件处理/word2txt.py
-> 建立.txt
-> E:\mypython\E:\mypython\untitled3\建立.txt
Traceback (most recent call last):
File "E:/mypython/文件处理/word2txt.py", line 50, in <module>
Word2Txt(filepath)
File "E:/mypython/文件处理/word2txt.py", line 42, in Word2Txt
mytxt.SaveAs(word_to_txt,4)
AttributeError: 'NoneType' object has no attribute 'SaveAs'
仅仅改了自己的路径,然后得不到想要的