python
marco_l
不忘初心
展开
-
metaclass new init call
什么是 metaclass ? In object-oriented programming, a metaclass is a class whose instances are classes. Just as an ordinary class defines the behavior of certain objects, a metaclass defines the beh转载 2016-03-03 10:09:33 · 400 阅读 · 0 评论 -
python3 模拟POST请求时 “Content-Type”指定编码会消失的问题
HTTP请求 服务器默认GBK编码时 浏览器UTF-8编码 如果请求时不指定编码格式就会乱码 python3 模拟POST请求时 “Content-Type”指定编码会消失的问题如下代码所示 在外部指定的”Content-Type”=”application/x-www-form-urlencoded; charset=UTF-8” 但是用抓包后返现charset=UTF-8消失了变原创 2017-08-10 16:51:31 · 15609 阅读 · 0 评论