会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Myfunny9527
博客园
首页
新随笔
联系
订阅
管理
2020年8月14日
requests获取网络图片后直接转为base64
摘要: 1 import requests 2 import base64 3 4 5 def get_url_image(url): 6 r = requests.get(url) 7 base_data = base64.encodebytes(r.content) 8 return 'data:ima
阅读全文
posted @ 2020-08-14 14:21 Myfunny9527
阅读(1173)
评论(0)
推荐(1)
公告