Python出现: TypeError: expected string or buffer

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xm_csdn/article/details/78285419

python 提示 TypeError: expected string or buffer,一般为数据类型与预定的数据类型不一致造成的


所有如果不能明确知道那个数据类型不对,那么把所有数据的类型打印出来与预期的数据类型进行对比,即可。

猜你喜欢

转载自blog.csdn.net/xm_csdn/article/details/78285419