小编lon*_*ely的帖子

没有编码的Python字符串参数

我试图运行这段代码,并不断给出错误说"没有编码的字符串参数"

ota_packet = ota_packet.encode('utf-8') + bytearray(content[current_pos:(final_pos)]) + '\0'.encode('utf-8')
Run Code Online (Sandbox Code Playgroud)

有帮助吗?

python encoding python-3.x python-unicode

40
推荐指数
1
解决办法
7万
查看次数

标签 统计

encoding ×1

python ×1

python-3.x ×1

python-unicode ×1