程序猿刚子的博客

大龄程序猿,分享互联网开发相关知识!前端、后端,架构等内容,欢迎关注公众号 chengxuyuangangzi

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年8月19日

摘要: #coding=gbk#download pictures of the url#useage: python downpicture.py www.baidu.comimport osimport sysfrom html.parser import HTMLParserfrom urllib.request import urlopenfrom urllib.parse import urlparsedef getpicname(path): ''' retrive filename of url ''' if os.path.splitex 阅读全文
posted @ 2011-08-19 17:04 程序猿刚子 阅读(5530) 评论(7) 推荐(0) 编辑