python3使用urlopen的方法

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

或者

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


不能使用

import urllib

urllib.request.urlopen('xxx')

猜你喜欢

转载自blog.51cto.com/wenguonideshou/2386704
今日推荐