![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
zjqlovell
God helps those who help themselves.
展开
-
python解析json文件
参考python内部的json文档: python>>> help(json) 或者官方文档: http://docs.python.org/library/json.html#module-json 下面给出一个使用python解析json的简单例子: #!/usr/bin/python import json #Function:Analyze json原创 2015-08-12 21:32:01 · 397 阅读 · 0 评论 -
IndentationError: unexpected indent python
IndentationError: unexpected indent python python是对格式要求很严格。 今天遇到了IndentationError: unexpected indent错误: 在windows下的tab并不等同于多个空格原创 2015-08-21 16:23:53 · 441 阅读 · 0 评论 -
python通过get方式,post方式发送http请求和接收http响应-urllib urllib2
python通过get方式,post方式发送http请求和接收http响应-- import urllib模块,urllib2模块, httplib模块 测试用CGI,名字为test.py,放在apache的cgi-bin目录下: #!/usr/bin/python import cgi def main(): print "Cont转载 2015-08-21 16:25:03 · 393 阅读 · 0 评论