- 博客(2)
- 收藏
- 关注
原创 python搜索二进制文件特定字节序
dest = [0x11,0x11,0x23,0x22] print dest myfile = open('mytest','rb') count = 0 index = 0 mystring = myfile.read(16) while(mystring): for x in mystring: count
2014-11-24 21:04:34
2935
原创 python读取二进制文件
#读取二进制文件,并以16进制形式打印 import structimport osos.chdir(r'/users/halimac/Desktop/test') myfile = open('a.out','rb')mystring = myfile.read(16)while(mystring): mystring = map(ord,mystring) for
2014-11-24 20:15:15
512
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人