I use asyncio to download pictures. I can download them but cannot open them
@asyncio.coroutine # <3>
def get_flag(cc):
print(6)
resp = yield from aiohttp.request('GET', cc) # <4>
image = yield from resp.read() # <5>
##########有問(wèn)題
return image
//////////////////////////////////////
上邊是代碼,能夠request,但是在read的時(shí)候就出現(xiàn)問(wèn)題了,cc是圖片的路徑