![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 1868 阅读 · 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 · 832 阅读 · 0 评论 -
python hmac
signature = urllib.quote( base64.b64encode( hmac.new(privateKey, url, digestmod=hashlib.sha1) .digest() ))原创 2017-12-08 09:04:16 · 758 阅读 · 0 评论