2

我一直在尝试使用 python 模块 olefile 提取磁盘中 msg 文件的文本内容。但是越来越AttributeError: OleFileIO instance has no attribute 'read'。试图读取 olefile API 但无法获得任何线索。谢谢你。

import sys,olefile

x=olefile.OleFileIO('dkd.msg')

print x.read()
4

1 回答 1

1

尝试

y = x.openstream('WordDocument'); print y.read()
于 2014-12-04T22:49:18.213 回答