python aiohttp download pictures
给我你的怀抱
给我你的怀抱 2017-07-05 10:34:44
0
1
957

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> ##########有问题 return image ////////////////////////////////////// 上边是代码,能够request,但是在read的时候就出现问题了,cc是图片的路径
给我你的怀抱
给我你的怀抱

reply all (1)
小葫芦

Shouldn’t it be resp.content

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!