【Day4】3.urllib模块使用案例 import urllib.request as ur ret = ur.urlopen('https://edu.csdn.net/').read() with open('edu.html','wb') as f: f.write(ret)