<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Python Essential Reference - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/tag/python-essential-reference/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Wed, 19 Oct 2011 05:25:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>Python Essential Reference 4th – 第15章 – 读书笔记</title>
		<link>https://www.coder4.com/archives/1685</link>
					<comments>https://www.coder4.com/archives/1685#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Mon, 20 Jun 2011 14:59:14 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Python Essential Reference]]></category>
		<category><![CDATA[第15章]]></category>
		<category><![CDATA[读书笔记]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1685</guid>

					<description><![CDATA[本章主要介绍抽象类和一些高级的Collection。 1、abc模块：抽象类模块。 一个抽象类的例子： (1)__metaclass__用ABCMeta替换 (2)抽象方法用@abstractmethod标注 (3)抽象属性用@abstractproperty标注 from abc import ABCMeta,abstractmethod,abstractproperty class Stackable: __metaclass__ = ABCMeta @[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1685/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python Essential Reference 4th – 第14章 – 读书笔记</title>
		<link>https://www.coder4.com/archives/1676</link>
					<comments>https://www.coder4.com/archives/1676#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 17 Jun 2011 13:36:35 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Python Essential Reference]]></category>
		<category><![CDATA[数学运算]]></category>
		<category><![CDATA[浮点数]]></category>
		<category><![CDATA[第14章]]></category>
		<category><![CDATA[读书笔记]]></category>
		<category><![CDATA[随机数]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1676</guid>

					<description><![CDATA[本章主要介绍一些和数学计算相关的模块。 1、decimal模块 主要提供浮点运算。Python默认的浮点存储是IEEE 754标准的，对于0.1可能被存储为0.000000000000000001。这类问题在Java等也存在。在一般情况下是可容忍的，但有些时候（比如用于金融行业软件），3 * 0.1 == 0.3会返回False，这是不合适的。 dicimal模块采用IBM General Decimal Arthmetic标准。定义了两种个主要类：Decimal和Context类。其[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1676/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python Essential Reference 4th – 第13章 – 读书笔记</title>
		<link>https://www.coder4.com/archives/1673</link>
					<comments>https://www.coder4.com/archives/1673#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Thu, 16 Jun 2011 14:42:35 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Python Essential Reference]]></category>
		<category><![CDATA[第13章]]></category>
		<category><![CDATA[读书笔记]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1673</guid>

					<description><![CDATA[本章主要介绍了一些与Python运行时相关的模块。 1、atexit模块 在真个Python解释器退出时，可以绑定若干钩子函数，通过atexit完成。 &#62;&#62;&#62; def fun1(): ... print "hh" ... &#62;&#62;&#62; import atexit &#62;&#62;&#62; atexit.register(fun1) &#60;function fun1 at 0xb7707614&#62; &#62;&#62;&#62; #按C[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1673/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python Essential Reference 4th – 第12章 – 读书笔记</title>
		<link>https://www.coder4.com/archives/1666</link>
					<comments>https://www.coder4.com/archives/1666#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Tue, 14 Jun 2011 08:09:32 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Python Essential Reference]]></category>
		<category><![CDATA[内置函数]]></category>
		<category><![CDATA[内置异常]]></category>
		<category><![CDATA[第12章]]></category>
		<category><![CDATA[读书笔记]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1666</guid>

					<description><![CDATA[1、有一些函数是不需要import的，因为他们存在于__buildin__模块下，这个模块是被默认引入的。在Python 3之后，更名为__buildins__，加了个s。 2、这些不需要import的称为内置函数。 3、一些内置函数/对象： ascii(c)：只在Python 3 可用！返回c对应的ascii字符，非ascii字符转化为对应的转义字符。 basestring：Python 2 中Byte字符串和Unicode字符串的父类。 bin(x)：返回整数x的二进制[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1666/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python Essential Reference 4th – 第4章 – 读书笔记</title>
		<link>https://www.coder4.com/archives/1660</link>
					<comments>https://www.coder4.com/archives/1660#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Mon, 13 Jun 2011 05:26:45 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[Python Essential Reference]]></category>
		<category><![CDATA[操作符]]></category>
		<category><![CDATA[第4章]]></category>
		<category><![CDATA[表达式]]></category>
		<category><![CDATA[读书笔记]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1660</guid>

					<description><![CDATA[1、关于除法/和//。 在Python 2中，/还是整除，即只返回整数部分。 而Python 3中，/变为浮点除，不在约为整数。 在Python 2中，想要获取浮点结果，可以将除数或者被除数强转为float： float(1)/100 0.01 2、一些有用的函数 abs(x)：返回x的绝对值 pow(x,y)：x ^ y，等价于x ** y round(x)：返回离x最近的10^n值，n可正或者负 3、关于对tuple、list、字符等的乘法：重复字符 如'a'[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1660/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python Essential Reference 4th – 第3章 – 读书笔记</title>
		<link>https://www.coder4.com/archives/1610</link>
					<comments>https://www.coder4.com/archives/1610#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Tue, 31 May 2011 14:48:56 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Python Essential Reference]]></category>
		<category><![CDATA[第3章]]></category>
		<category><![CDATA[读书笔记]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1610</guid>

					<description><![CDATA[1、Python中，一切都是对象。 2、类型：type/class，对象/实例：instance。 3、对象按照是否可以修改，分为可变的 mutable 和不可变的 immutable 。 4、对象中可以引用其他对象，成为容器 container or collection。 5、对象有属性（值）和方法（函数）。 6、Python中的对象无法直接映射到内存空间，但是可以用内置函数id( )函数来查看： &#62;&#62;&#62; a = [] &#62;&#62;&#038;g[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1610/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python Essential Reference 4th – 第11章 – 读书笔记</title>
		<link>https://www.coder4.com/archives/1573</link>
					<comments>https://www.coder4.com/archives/1573#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sun, 22 May 2011 14:54:22 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Python Essential Reference]]></category>
		<category><![CDATA[性能]]></category>
		<category><![CDATA[测试]]></category>
		<category><![CDATA[第11章]]></category>
		<category><![CDATA[读书笔记]]></category>
		<category><![CDATA[调优]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1573</guid>

					<description><![CDATA[本章主要介绍测试、调试和性能调优 1、C、Java等语言，都是预编译类型，编译器会阻止大部分的错误。而对于Python来说，仅当运行时才能知道错误。因此，发现错误的过程更麻烦一些。 2、函数、类等第一行常用三个引号的字符串来写注释docstring，如下： def split(line,...): """ Split.... >>>split(...) >>>[...] """ 如上所示，doc中经常包含python交互shell的[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1573/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Python Essential Reference 4th – 第10章 – 读书笔记</title>
		<link>https://www.coder4.com/archives/1564</link>
					<comments>https://www.coder4.com/archives/1564#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 20 May 2011 12:12:27 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Python Essential Reference]]></category>
		<category><![CDATA[参数]]></category>
		<category><![CDATA[第10章]]></category>
		<category><![CDATA[解析器]]></category>
		<category><![CDATA[读书笔记]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1564</guid>

					<description><![CDATA[1、python解析器的参数： -i 当程序执行完毕后，进入交互模式。 -O 优化模式 -OO 进一步优化模式 -v 详细现实 -x 跳过py文件的第一行 2、另外，python会解析一些环境变量，例如： PYTHONPATH 模块搜索的路径，会被插入到 sys.path PYTHONIOENCODING 对于stdin、stdout和stdout的方式？ PYTHONOPTIMIZE -O参数 3、当在命令行只输入python，不加任何py文件时，进入交互模式。&#038;g[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1564/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python Essential Reference 4th – 第9章 – 读书笔记</title>
		<link>https://www.coder4.com/archives/1556</link>
					<comments>https://www.coder4.com/archives/1556#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Thu, 19 May 2011 16:18:27 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[I/O]]></category>
		<category><![CDATA[Python Essential Reference]]></category>
		<category><![CDATA[文件]]></category>
		<category><![CDATA[环境变量]]></category>
		<category><![CDATA[第8章]]></category>
		<category><![CDATA[读书笔记]]></category>
		<category><![CDATA[输入]]></category>
		<category><![CDATA[输出]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1556</guid>

					<description><![CDATA[本章主要是关于各种I/O操作，包括File-Objec及其操作、Unicode字符串相关的I/O函数以及对象的序列化和持久化。 1、从cmd读取传入参数：sys.argv。其中sys.argv[0]是当前的程序名称。 2、想要退出系统时，出了exit和return外，还可以raise SystemExit(1) 3、解析命令行参数，可以使用optparse模块。 不过从2.7之后，Python将废弃optparse，转而支持argparse，话说开源的东西变动太大。。。 o[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1556/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python Essential Reference 4th – 第8章 – 读书笔记</title>
		<link>https://www.coder4.com/archives/1545</link>
					<comments>https://www.coder4.com/archives/1545#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Tue, 17 May 2011 13:19:05 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[easy_setup]]></category>
		<category><![CDATA[Python Essential Reference]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[包]]></category>
		<category><![CDATA[安装]]></category>
		<category><![CDATA[模块]]></category>
		<category><![CDATA[注册]]></category>
		<category><![CDATA[第8章]]></category>
		<category><![CDATA[组织]]></category>
		<category><![CDATA[读书笔记]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1545</guid>

					<description><![CDATA[1、Python程序可以通过模块(modules)和包(package)来组织，简单来说，模块就是xx.py文件，而包就是一组这种文件组成的文件夹（含子文件夹） 2、如1中所属，每一个.py文件都可以看做是一个模块，通过import来引用。 [python] #spam.py a = 37 def foo(): print(&#34;I'm foo and a is %d&#34; % a) def bar(): print(&#34;I'm b[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1545/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
