zoukankan
html css js c++ java
4 urllib和urllib2的区别
4 urllib和urllib2的区别
这个面试官确实问过,当时答的urllib2可以Post而urllib不可以.
urllib提供urlencode方法用来GET查询字符串的产生,而urllib2没有。这是为何urllib常和urllib2一起使用的原因。
urllib2可以接受一个Request类的实例来设置URL请求的headers,urllib仅可以接受URL。这意味着,你不可以伪装你的User Agent字符串等。
查看全文
相关阅读:
A. Difference Row
B. Fixed Points
命运
Climbing Worm
大学感想
Constructing Roads
lintcode605- Sequence Reconstruction- medium- airbnb google
lintcode616- Course Schedule II- medium
lintcode615- Course Schedule- medium
lintcode127- Topological Sorting- medium
原文地址:https://www.cnblogs.com/hrnn/p/13336435.html
最新文章
Script.NET实现脚本库
XtraGrid滚轮翻页
XtraGrid的若干种用法
jqGrid的若干种用法
跟KingDZ学HTML5之二 再见Audio和Video
跟KingDZ学HTML5之五 探究Canvas之图像与文字
哈希(3) java中的hashcode
哈希(2) hash索引
哈希(1) hash的基本知识回顾
leetcode 二分查找
热门文章
lecode Interleaving String
sqrt (x) 牛顿迭代法
荷兰国旗问题 划分成3部分 leecode
搜狗一道java题目 关于对象 synchronized 关键字作用在 int, integer
传输层之UDP
传输层之TCP
找单词
今年暑假不AC
Rightmost Digit
Text Reverse
Copyright © 2011-2022 走看看