integer to bytes with escape for regexp module - example bytes b'\xd7(\x7f\xf2'

后端 未结 0 888
萌比男神i
萌比男神i 2020-12-01 09:20

import re a=0xf27f28d7 b=a.to_bytes(4, \'little\') with open(fimage, \'rb\') as f: [hex(m.start(0)] for m in re,finditer(b, f.read())

b = b\'\\xd7(\\x7f\\xf2\'

相关标签:
回答
  • 消灭零回复
提交回复
热议问题