资源简介
python3.4爬取网络图片,然后写入文件的示例小程序
代码片段和文件信息
#! /usr/bin/python
# -*- coding: utf-8 -*-
import urllib.requesturllib.error
try:
#抓取网络资源
resp=urllib.request.urlopen(‘http://su.bdimg.com/static/superplus/img/logo_white_ee663702.png‘)
html=resp.read()
- 上一篇:python实现可视域算法
- 下一篇:python实现VRPTW求解禁忌搜索算法
相关资源
- python3.4的安装包
- matplotlib-2.0.0b2-cp34-cp34m-win32.whl
- Python3.4 PyQt5 32位安装版PyQt5-5.5.1-gpl-
- python3.4 3.5 3.6 twisted适配windows
- python3.4+pywin32 32位
- Python3.4.4-32bit
- Python3.4 Numpy安装包
- PyQt4-4.11.4 win32 python3.4直接安装版(
- python3.4中文学习手册chm
- pygraphviz python3.4 轮子
- py2exe(python2.7/python3.3/python3.4)
评论
共有 条评论