![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
mackentancap
这个作者很懒,什么都没留下…
展开
-
Python获取html显示乱码
#!/usr/bin/env python# -*- coding: GBK -*-import urllib2import simplejsonurl="http://localhost:82/v1/"header = {'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.1...原创 2012-06-26 15:56:25 · 697 阅读 · 0 评论 -
python解析XML中的元素节点
在使用python的minidom解析xml文件时,遇到一个问题,当使用parseString格式解析数据时,例如字符串<?xml version="1.0" encoding="UTF-8" standalone="yes"?><books> <book> <name>macken&am原创 2012-06-26 16:02:26 · 379 阅读 · 0 评论 -
python 安装pip
1.介绍pip 是个 python 第三方模块管理工具,类似easy_install官网:http://www.pip-installer.org/en/latest/ 基于python2.4版本,2.4不兼容最新版本的pip 2.安装setuptools下载:wget --no-check-certificate https://pypi.python.org/pac...原创 2013-09-06 14:03:22 · 119 阅读 · 0 评论 -
python 2.7安装
wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2bunzip2 Python-2.7.5.tar.bz2 tar xvf Python-2.7.5.tarcd Python-2.7.5./configure --prefix=/usr/local/python2.7makemake insta...原创 2013-09-18 13:59:04 · 95 阅读 · 0 评论