python TypeError: write() argument must be str, not bytes 解决方法

1.报错信息:
TypeError: write() argument must be str, not bytes

查看代理文件打开的语句是:
filehandle = open(“song.csv”, ‘w’)

改成了
filehandle = open(“song.csv”, ‘wb’)

猜你喜欢

转载自blog.csdn.net/weixin_45598506/article/details/114138689