我需要将下一个bytearray转换为string:
Num = bytearray()我试过了
Num = bytearray(str) 但这不是解决之道
发布于 2018-04-30 14:17:02
正如t.m.adam在评论中所说,使用bytearray.decode
b = bytearray("test", encoding="utf-8")
b.decode()
#> 'test'https://stackoverflow.com/questions/50094765
复制相似问题