🐍Python🐍 🐍Python🐍import pefilepathFile = ".\\PE"def File2Read(): filePE = open(pathFile, "rb") if(filePE): print("成功读取文件") else: print("无文件 / 文件无数据") exit(0) dataPE = filePE.read() global hexPE hexPE = binascii.b2a_hex(dataPE).decode('utf-8').upper()