如何使用python以字节模式将文件字符串写入文件?
我有:
['0x28', '0x0', '0x0', '0x0']
如何将0x28,0x0,0x0,0x0写入文件?我不知道如何将此字符串转换为有效字节并写入它.
python string byte file python-3.x
byte ×1
file ×1
python ×1
python-3.x ×1
string ×1