美丽心灵公益论坛's Archiver
论坛
›
电脑技术
› Python获取网页内容
willsonlincake
发表于 2022-4-4 21:06:29
Python获取网页内容
import requests
req = requests.get(“http://www.google.com")
req.status_code
如果req.status_code返回值为200说明访问成功
页:
[1]
查看完整版本:
Python获取网页内容