2021年6月10日

python3 spider [ urllib.request ]

摘要: # # 导入urllib库的urlopen函数 # from urllib.request import urlopen # # 发出请求,获取html # html = urlopen("https://www.baidu.com/") # # 获取的html内容是字节,将其转化为字符串 # ht 阅读全文

posted @ 2021-06-10 16:00 Karlkiller 阅读(45) 评论(0) 推荐(0) 编辑

导航