Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在尝试使用 python 模块 olefile 提取磁盘中 msg 文件的文本内容。但是越来越AttributeError: OleFileIO instance has no attribute 'read'。试图读取 olefile API 但无法获得任何线索。谢谢你。
AttributeError: OleFileIO instance has no attribute 'read'
import sys,olefile x=olefile.OleFileIO('dkd.msg') print x.read()
尝试
y = x.openstream('WordDocument'); print y.read()