# Print Hex Buffer
def hexdump(buf = None):
if buf != None:
pstr = ''
cnt = 0
for x in buf:
if (cnt + 1) % 8 == 0:
pstr = '%s%02X\n' % (pstr, x)
else:
pstr = '%s%02X ' % (pstr, x)
cnt = cnt + 1
print pstr
Python实现的基于ADB的Android远程工具(5)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/4426fff1a55660c72a73dc3e3c0f172d.html