2012年2月7日

python urllib 模块介绍

摘要: 转自:http://pyud123456.blog.163.com/blog/static/85202217200911834525420/一。该模块的用途:1。从制定的URL获取数据2。对URL字符串进行格式化处理二。__version__='1.17'的urllib模块中的主要函数和类介绍:1。函数:(1)def urlopen(url, data=None, proxies=None)参数说明:url 符合URL规范的字符串(包括http,ftp,gopher,local-file标准)data 向指定的URL发送的数据字符串,GET和POST都可,但必须符合标准格式 格 阅读全文

posted @ 2012-02-07 13:50 lonelycatcher 阅读(1015) 评论(0) 推荐(0) 编辑

导航