python2.7写的socket发送文件脚本,3.6报错:
TypeError: write() argument must be str, not bytes
修改内容编码解决此问题
使用decode.(‘utf-8’)把bytes改为字符串
python2.7写的socket发送文件脚本,3.6报错:
TypeError: write() argument must be str, not bytes
修改内容编码解决此问题
使用decode.(‘utf-8’)把bytes改为字符串