首先先下载安装python
https://www.python.org/downloads/windows/
下载一个版本
from urllib.request import urlopen
url = "http://www.qq.com/"
resp = urlopen(url)
with open("myqq.html",mode="w") as f:
f.write(resp.read().decode("utf-8"))
print("over!")
首先先下载安装python
https://www.python.org/downloads/windows/
下载一个版本
from urllib.request import urlopen
url = "http://www.qq.com/"
resp = urlopen(url)
with open("myqq.html",mode="w") as f:
f.write(resp.read().decode("utf-8"))
print("over!")