小编cri*_*ker的帖子

如何修复 AttributeError: 'bytes' object has no attribute 'encode'?

这是我的代码z = (priv.to_string().encode('hex')) ,我收到此错误:

"AttributeError: 'bytes' object has no attribute 'encode'"
Run Code Online (Sandbox Code Playgroud)

看起来我错过了在代码后显示“编码”的内容:

z = (priv.to_string().

python

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

标签 统计

python ×1