Python3 bytes 转换字符串

str(yourBytes,encodeing='utf-8')

或者

string = "".join(map(chr, yourBytes))

第二种不必考虑编码问题,好用。

 

posted @ 2018-01-12 10:24  DeeLMind  阅读(1588)  评论(0编辑  收藏  举报