- 博客(2)
- 收藏
- 关注
原创 python搜索二进制文件特定字节序
dest = [0x11,0x11,0x23,0x22]print destmyfile = open('mytest','rb')count = 0index = 0mystring = myfile.read(16)while(mystring): for x in mystring: count
2014-11-24 21:04:34
3692
原创 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
557
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人