📜  with urllib.request.urlopen("https: - Python 代码示例

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

代码示例1
import urllib.request

req = urllib.request.Request('http://www.voidspace.org.uk')
with urllib.request.urlopen(req) as response:
   the_page = response.read()