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

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

解决方法:

  

x.decode()

  

原文地址:https://www.cnblogs.com/fh-fendou/p/9522458.html