关于ImportError: No module named 'urllib2'

来源:互联网 发布:数据备份软件哪个好 编辑:程序博客网 时间:2024/05/01 17:35



import urllib.requestfd = urllib.request.urlopen('http://www.baidu.com')while 1:    data = fd.read(1024)    if not len(data):        break    print(data)

0 0
原创粉丝点击