TypeError: sequence item 0: expected str instance, bytes found 此错误就是因为需要string类型的数据,但是你的数据(x)是byte型。 解决方法: x.decode()