📜  在 url inpyton 请求中获取图像图像内存大小 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:49.629000             🧑  作者: Mango

代码示例1
import urllib.request, io
url = 'http://www.elsecarrailway.co.uk/images/Events/TeddyBear-3.jpg'
path = urllib.request.urlopen(url)
meta = path.info()

>>>meta.get(name="Content-Length")
'269898' # ie  269kb