问题:python3,写文件时出现错误TypeError: must be str, not bytes
解决:让写文件时支持binary模式
方法:
outFile = open(final_path, 'wb')
output_file.write(file_data['body'])
output_file.close()
问题:python3,写文件时出现错误TypeError: must be str, not bytes
解决:让写文件时支持binary模式
方法:
outFile = open(final_path, 'wb')
output_file.write(file_data['body'])
output_file.close()