python
xiaopingguo521
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python http请求设置代理
proxy_info = {‘host’: ‘ip’, ‘port’: port, ‘user’: ‘xxx’, ‘pass’: ‘xxx’ } proxy_support = urllib2.ProxyHandler({“http”: “原创 2017-12-07 11:55:07 · 1941 阅读 · 0 评论 -
python 中sql写法小例
sql = “insert into t_weather_new(timestamp, content, type)” \ ” values (%s,%s,%f) ON DUPLICATE KEY UPDATE ” \ “t_weather_new.content = (%s),t_weather_new.timestamp = (%s)”\原创 2017-12-07 16:47:00 · 882 阅读 · 0 评论 -
python hmac
signature = urllib.quote( base64.b64encode( hmac.new(privateKey, url, digestmod=hashlib.sha1) .digest() ))原创 2017-12-08 09:04:16 · 816 阅读 · 0 评论
分享