import urllib.request
import urllib.parse
response = urllib.request.urlopen("ip地址")
html = response.read()
html = html.decode("utf-8")
print(html)
txt = response.read()
with open('1\\test.txt','wb') as f:
f.write(txt)
Python初学简记之Scrapy
最新推荐文章于 2023-03-14 12:23:13 发布