Zac*_*own 25 python string hex file
如何使用Python将文件转换为HEX字符串?我已经在谷歌搜索了这个,但似乎找不到任何有用的东西.
unu*_*tbu 48
import binascii filename = 'test.dat' with open(filename, 'rb') as f: content = f.read() print(binascii.hexlify(content))
归档时间:
15 年 前
查看次数:
42302 次
最近记录:
7 年,3 月 前