python使用pefile 解析打印
#-- encoding: gb2312 --
import threading
import Queue
import os, string, shutil,re
import pefile
if name == “main”:
PEfile_Path = r"C:\md335.exe"
pe = pefile.PE(PEfile_Path)
print PEfile_Path
print pe
结果提示错误:
解决方案:
库文件太久,升级一下pefile就可以,输入
python -m pip install --upgrade pefile
再次运行,可以了