TypeError: sequence item 0: expected str instance, bytes found

此错误就是因为需要string类型的数据,但是你的数据(x)是byte型。

解决方法:

  

x.decode()

  

posted @ 2018-08-23 10:53  那时的吻狠陶醉  阅读(3248)  评论(0编辑  收藏  举报