<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Python - 技术文档</title>
    <link>http://article.phpfans.net</link>
    <description>PHP爱好者,新闻,论坛,问答吧,文档,手册,下载,博客</description>
    <copyright>Copyright(C) PHPfans</copyright>
    <lastBuildDate>Fri, 10 Sep 2010 18:42:51 +0800</lastBuildDate>
    <image>
      <url>http://www.phpfans.net/image/phpfans.logo.gif</url>
      <title>PHP爱好者</title>
      <link>http://www.phpfans.net</link>
    </image>
    <item>
      <title>关于Python正则表达式的问题</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAxOTc5.html</link>
      <description><![CDATA[&nbsp;&nbsp;<img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_e893a375-14c9-4797-9a8a-964d79a1350f" onclick="cnblogs_code_hide('e893a375-14c9-4797-9a8a-964d79a1350f',event)">代码#!&nbsp;/usr/bin/env&nbsp;python#coding=utf-8import&nbsp;restr=r'&lt;docitem&nbsp;key...]]></description>
      <category>Python</category>
      <author>阿笨猫</author>
      <pubDate>Fri, 10 Sep 2010 17:40:00 +0800</pubDate>
    </item>
    <item>
      <title>python web shell</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAxODM4.html</link>
      <description><![CDATA[http://pythonwebshell.appspot.com/interactivegoogle真的很强大，好像也有ruby shell?以前在哪看到过python gae后台的代码可以做为python的优秀范例<img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=eccbd3b3-18b0-8694-811e-20c926ca0171" />]]></description>
      <category>Python</category>
      <author>lexus</author>
      <pubDate>Fri, 10 Sep 2010 13:09:00 +0800</pubDate>
    </item>
    <item>
      <title>python web shell</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAxODM3.html</link>
      <description><![CDATA[http://pythonwebshell.appspot.com/interactivegoogle真的很强大，好像也有ruby shell?以前在哪看到过<img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=90e645a7-20ca-8025-a376-ab25bb3b1f42" />]]></description>
      <category>Python</category>
      <author>lexus</author>
      <pubDate>Fri, 10 Sep 2010 13:04:00 +0800</pubDate>
    </item>
    <item>
      <title>绕人的python汉字问题</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAxNzY4.html</link>
      <description><![CDATA[要显示汉字？首先在第一行声明一下字符集吧，一般是这样：# -*- coding:utf-8 -*-不过，光声明是没用的，你的文件，一定要存为UTf-8编码，不要是ANSI（记事本）要输出一个含有汉字的变量值，像下面这样：print unicode("退出程序(Quit the program)","utf-8")&nbsp;挺奇怪的，更奇怪的在后面呢，假如用raw_input接收输入的话，提示信息...]]></description>
      <category>Python</category>
      <author>菩提树</author>
      <pubDate>Fri, 10 Sep 2010 00:41:00 +0800</pubDate>
    </item>
    <item>
      <title>python代码基</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAxNzUx.html</link>
      <description><![CDATA[InstallTo install our rocking collection of snippets you need to first install the snippets library and then install theAcire&nbsp;viewer to view them. Currently these installation instructions are de...]]></description>
      <category>Python</category>
      <author>lexus</author>
      <pubDate>Thu, 09 Sep 2010 23:32:00 +0800</pubDate>
    </item>
    <item>
      <title>Python学习笔记（11）：更多内容</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAxNjc5.html</link>
      <description><![CDATA[1. 特殊方法
&nbsp;在类中有一些特殊的方法具有特殊的意义，如__init__和__del__方法。通常，特殊方法都被用来模仿某个行为。如果你要为你的类使用x[key]这样的索引操作，那么你只需要实现__getitem__()方法即可。



名称说明


__init__(self, ...)
这个方法在新建对象恰好要被返回使用之前被调用。


__del__(self)
恰好在对象要被删...]]></description>
      <category>Python</category>
      <author>known</author>
      <pubDate>Thu, 09 Sep 2010 21:15:00 +0800</pubDate>
    </item>
    <item>
      <title>Python学习笔记（10）：异常</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAxMDM3.html</link>
      <description><![CDATA[当程序执行的时候，可能会出现一些异常现象，这个可能是会存在的。例如，你在读文件的时候，而那个文件不存在。此时，我们可以用异常来处理。
1. 错误
我们来做个简单的测试，我们故意把print方法写出Print。
&gt;&gt;&gt; Print("Hello world")Traceback (most recent call last):&nbsp; File "&lt;pyshell#0&g...]]></description>
      <category>Python</category>
      <author>known</author>
      <pubDate>Wed, 08 Sep 2010 23:09:00 +0800</pubDate>
    </item>
    <item>
      <title>Python学习笔记（9）：输入/输出</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAxMDI4.html</link>
      <description><![CDATA[通常，一个程序都会有输入/输出，这样可以与用户进行交互。用户输入一些信息，你会对他输入的内容进行一些适当的操作，然后再输出给用户想要的结果。Python的输入/输出，我们可以用input进行输入，print进行输出，这些都是简单的控制台输入/输出，复杂的有处理文件等。
1. input和print

name = input("Please input your name:\n")
print("...]]></description>
      <category>Python</category>
      <author>known</author>
      <pubDate>Wed, 08 Sep 2010 22:08:00 +0800</pubDate>
    </item>
    <item>
      <title>Changes in Python</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAxMDA5.html</link>
      <description><![CDATA[Python 3.0
for x in range(1,11): print '{0:2d} {1:3d} {2:4d}'.format(x, x*x, x*x*x) 
&nbsp;
Python 2.5
for x in range(1,11):&nbsp;&nbsp; print '%2d %3d %4d' % (x, x*x, x*x*x) ]]></description>
      <category>Python</category>
      <author>greencolor</author>
      <pubDate>Wed, 08 Sep 2010 20:19:00 +0800</pubDate>
    </item>
    <item>
      <title>查看python各类对象占用内存</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAxNDEw.html</link>
      <description><![CDATA[
在邮件列表上看到的，记下来，以免忘了在内存占用很多的时候调用下面一段脚本，
看看是哪个类的类对象占用内存多：  &nbsp; &nbsp; import gc  &nbsp; &nbsp; import sys  &nbsp; &nbsp; from 
collections import defaultdict  &nbsp; &nbsp; d = defaultdict(int)  &n...]]></description>
      <category>Python</category>
      <author>pgt112you</author>
      <pubDate>Wed, 08 Sep 2010 10:23:00 +0800</pubDate>
    </item>
    <item>
      <title>Bottle(Flask)样的tornado开发</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAwNjkw.html</link>
      <description><![CDATA[起因：今年春节后发现有个tornado web的东西，app server+web framework的集合体，正好工作中有个项目需要其中的异步远程调用的特性，遂研究之，用到现在感触良多，其性能尚可，但是作为Web Framework看来其封装方式我并不喜欢，窃以为不够紧凑，需要设置的地方不够清晰，很多功能的使用稍显繁琐。并且在新创建一个app的时候如果不参看已有的app做为参考，重头写起来很困难...]]></description>
      <category>Python</category>
      <author>亚历山大同志</author>
      <pubDate>Wed, 08 Sep 2010 00:16:00 +0800</pubDate>
    </item>
    <item>
      <title>Install Python 3.1</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAwNjYw.html</link>
      <description><![CDATA[wget http://www.python.org/ftp/python/3.1/Python-3.1.tgz]]></description>
      <category>Python</category>
      <author>greencolor</author>
      <pubDate>Tue, 07 Sep 2010 21:57:00 +0800</pubDate>
    </item>
    <item>
      <title>Common Python 3 Libraries(Chapter 12 of Python 3 Object Oriented Programming)</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAwNjUy.html</link>
      <description><![CDATA[　　In this chapter we'll be covering: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Database librarie...]]></description>
      <category>Python</category>
      <author>Ray Z</author>
      <pubDate>Tue, 07 Sep 2010 20:47:00 +0800</pubDate>
    </item>
    <item>
      <title>Vim as Python IDE on windows（待补全）</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAwNjEy.html</link>
      <description><![CDATA[从Vim的网站下载vim,下Self-installing executable的版本。
&nbsp;
编辑配置文件_vimrc
拷贝vimrc_example里面的东东到_vimrc
去掉_vimrc里面的source $VIMRUNTIME/vimrc_example.vim
&nbsp;
设置中文支持

]]></description>
      <category>Python</category>
      <author>DDL</author>
      <pubDate>Tue, 07 Sep 2010 16:46:00 +0800</pubDate>
    </item>
    <item>
      <title>破解PyDev</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAwNjA4.html</link>
      <description><![CDATA[网上找的一个破解文件，压缩包中有说明用PydevPlugin.class替换com.python.pydev_***目录下pydev.jar下\com\python\pydev 目录下的同名文件。&nbsp;
下載：破解文件]]></description>
      <category>Python</category>
      <author>heeeey</author>
      <pubDate>Tue, 07 Sep 2010 15:39:00 +0800</pubDate>
    </item>
    <item>
      <title>python基础知识</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAxMzI2.html</link>
      <description><![CDATA[

		数在Python中有4种类型的数——整数、长整数、浮点数和复数。&nbsp;&nbsp;&nbsp;&nbsp; 2是一个整数的例子。&nbsp;&nbsp;&nbsp;&nbsp; 长整数不过是大一些的整数。&nbsp;&nbsp;&nbsp;&nbsp; 3.23和52.3E-4是浮点数的例子。E标记表示10的幂。在这里,52.3E-4表示52.3 * 10-4。&nbsp;&nbs...]]></description>
      <category>Python</category>
      <author>biti-leaf</author>
      <pubDate>Tue, 07 Sep 2010 15:12:00 +0800</pubDate>
    </item>
    <item>
      <title>安装python</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAwNzk4.html</link>
      <description><![CDATA[
1.Linux用户如果你正在使用一个Linux的发行版,那么你可能已经在你的系统里安装了Python。要测试你是否已经随着你的Linux包安装了Python,你可以打开一个shell程序,然后输入如下所示的命令python -V。$ python -VPython 2.5.1如果你看见向上面所示的那样一些版本信息,那么你已经安装了Python了。如果你得到像这样的消息:$ python -Vba...]]></description>
      <category>Python</category>
      <author>biti-leaf</author>
      <pubDate>Tue, 07 Sep 2010 10:41:00 +0800</pubDate>
    </item>
    <item>
      <title>Testing Object-oriented Programs(Chapter 11 of Python 3 Object Oriented Programm</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAwMjcz.html</link>
      <description><![CDATA[1&nbsp;import&nbsp;unittest2&nbsp;3&nbsp;class&nbsp;CheckNumbers(unittest.TestCase):4&nbsp;&nbsp;&n...]]></description>
      <category>Python</category>
      <author>Ray Z</author>
      <pubDate>Mon, 06 Sep 2010 21:19:00 +0800</pubDate>
    </item>
    <item>
      <title>Python学习笔记（1）：初体验 - [Python](转)</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAwMjY1.html</link>
      <description><![CDATA[Python学习笔记（1）：初体验 - [Python]

版权声明：转载时请以超链接形式标明文章原始出处和作者信息及本声明http://yu-chi.blogbus.com/logs/74333174.html
官方介绍：Python是一种简单易学，功能强大的编程语言，它有高效率的高层数据结构，简单而有效地实现面向对象编程。Python简洁的语法和对动态输入的支持，再加上解释性语言的本质，使得它...]]></description>
      <category>Python</category>
      <author>Mr.Yuchi</author>
      <pubDate>Mon, 06 Sep 2010 20:14:00 +0800</pubDate>
    </item>
    <item>
      <title>python 迭代器</title>
      <link>http://www.phpfans.net/article/htmls/201009/MzAwMjI0.html</link>
      <description><![CDATA[学习材料：
learning python 4th
&nbsp;
例子代码：

1 ### file: script1.py2 &nbsp;3 &nbsp;# A first Python scri...]]></description>
      <category>Python</category>
      <author>菜刀大侠</author>
      <pubDate>Mon, 06 Sep 2010 15:54:00 +0800</pubDate>
    </item>
  </channel>
</rss>