python 自學第十六天 經過python3 獲取網頁源代碼

代碼很簡單html import urllib.request def Html(url): html = urllib.request.urlopen(url) return html.read().decode('utf-8') respone = Html(r'http://blog.sina.com.cn/') print(respone) url
相關文章
相關標籤/搜索