python3使用urlopen的方法

from urllib.request import urlopen
urlopen('xxx')

或者

from urllib import request
request.urlopen('xxx')


不能使用

import urllib

urllib.request.urlopen('xxx')

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章