当前位置:主页 > 软件编程 > Python代码 >

python3.x 将byte转成字符串的方法

时间:2021-11-23 11:45:48 | 栏目:Python代码 | 点击:

如下所示:

result = str(要转换的变量名, encoding='utf-8')

例如:

result = str(request, encoding='utf-8')

您可能感兴趣的文章:

相关文章