Python PIL模块Image对象、字节流对象转二进制字节流
#!usr/bin/env python# encoding:utf-8from __future__ import division '''__Author__:沂水寒城功能: Python PIL模块Image对象、字节流对象转二进制字节流''' import ioimport osimport requestsfrom PIL import Imageimport matplotlib.pyplot as plt def image2Binary():