相关疑难解决方法(0)

Python将字节串写入文件

如何使用python以字节模式将文件字符串写入文件?

我有:

['0x28', '0x0', '0x0', '0x0']
Run Code Online (Sandbox Code Playgroud)

如何将0x28,0x0,0x0,0x0写入文件?我不知道如何将此字符串转换为有效字节并写入它.

python string byte file python-3.x

16
推荐指数
2
解决办法
6万
查看次数

标签 统计

byte ×1

file ×1

python ×1

python-3.x ×1

string ×1