1.安装工具:antiword
下载地址:http://www.winfield.demon.nl/
2.直接上代码
#导入包 import subprocess word = "9.21手绘故事成品定稿.doc" output = subprocess.check_output(["antiword", word]) # 解码 output = output.decode('utf8') print (output)
1.安装工具:antiword
下载地址:http://www.winfield.demon.nl/
2.直接上代码
#导入包 import subprocess word = "9.21手绘故事成品定稿.doc" output = subprocess.check_output(["antiword", word]) # 解码 output = output.decode('utf8') print (output)