python3中的 str 和 byte

temp = str(tf_class[n], encoding='utf-8')
#print(type(temp))

 

 

如果发现type 是 class bytes , 要注意转换。

https://blog.csdn.net/lyb3b3b/article/details/74993327

posted on 2020-09-09 16:30  cdekelon  阅读(94)  评论(0)    收藏  举报

导航