2016-10-30 85 views

回答

3
buffer = io.BytesIO() 

im=ImageGrab.grab() 
im.save(buffer, format='PNG') 
im.close() 

b64_str = base64.b64encode(buffer.getvalue())