Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用python读取ppt文件?_Python - Fatal编程技术网

如何使用python读取ppt文件?

如何使用python读取ppt文件?,python,Python,我想获取ppt文件中的内容(仅限文本)。怎么做? (如果我想在txt文件中获取内容,我只需要打开并阅读。我需要做什么才能从ppt文件中获取信息? 顺便说一下,我知道windows系统中有一个win32com。但是现在我在linux上工作,有什么可能的方法吗?我发现这个讨论是在: 这里列出了几个合理的答案,包括使用LibreOffice来实现这一点(对于.doc,.docx,.pptx,等等),以及(在这个解决方案空间中似乎是5000磅的大猩猩)。你所说的内容是什么意思?纯文本还是图表和多媒体?

我想获取ppt文件中的内容(仅限文本)。怎么做?
(如果我想在txt文件中获取内容,我只需要打开并阅读。我需要做什么才能从ppt文件中获取信息?

顺便说一下,我知道windows系统中有一个win32com。但是现在我在linux上工作,有什么可能的方法吗?

我发现这个讨论是在:


这里列出了几个合理的答案,包括使用LibreOffice来实现这一点(对于
.doc
.docx
.pptx
,等等),以及(在这个解决方案空间中似乎是5000磅的大猩猩)。

你所说的内容是什么意思?纯文本还是图表和多媒体?那么,你在ppt上试过unix
strings
吗?@mouviciel我刚试过。但是看起来不太好。有些文本是我想要的,但有些不是。@thorstenmüller thx。catdoc是一个好的。