Python异常处理
摘要:8.1. Syntax ErrorsSyntax errors, also known as parsing errors, are perhaps the most common kind of complaint you get while you are still learning Pyth...
阅读全文
posted @
2015-03-20 22:16
Jeremy123
阅读(5010)
推荐(0)
Python输入输出
摘要:There are several ways to present the output of a program; data can be printed in a human-readable form, or written to a file for future use. This cha...
阅读全文
posted @
2015-03-19 22:36
Jeremy123
阅读(1714)
推荐(1)
Python模块
摘要:6. ModulesIf you quit from the Python interpreter and enter it again, the definitions you have made (functions and variables) are lost. Therefore, if ...
阅读全文
posted @
2015-03-18 23:32
Jeremy123
阅读(1917)
推荐(2)
Python数据结构(二)
摘要:5.2. The del statementThere is a way to remove an item from a list given its index instead of its value: the del statement. This differs from the pop(...
阅读全文
posted @
2015-03-15 22:58
Jeremy123
阅读(1293)
推荐(0)
Python数据结构(一)
摘要:5. Data StructuresThis chapter describes some things you’ve learned about already in more detail, and adds some new things as well.这一章节将更详细的描述你已经学到的东西...
阅读全文
posted @
2015-03-15 00:45
Jeremy123
阅读(774)
推荐(1)
Python更多控制流工具(二)
摘要:4.6. Defining FunctionsWe can create a function that writes the Fibonacci series to an arbitrary boundary:我们创建一个斐波那契数列的函数:>>> def fib(n): # write F...
阅读全文
posted @
2015-03-14 20:21
Jeremy123
阅读(349)
推荐(0)
Python更多控制流工具(一)
摘要:4.1. if StatementsPerhaps the most well-known statement type is the if statement. For example:if语句可能是最常见的控制流语句了,例如:>>> x = int(input("Please enter an ...
阅读全文
posted @
2015-03-14 15:40
Jeremy123
阅读(712)
推荐(0)
非正式介绍Python(二)
摘要:3.1.3. ListsPython knows a number of compound data types, used to group together other values. The most versatile is the list, which can be written as...
阅读全文
posted @
2015-03-14 00:32
Jeremy123
阅读(224)
推荐(0)
非正式介绍Python(一)
摘要:3.1. Using Python as a CalculatorLet’s try some simple Python commands. Start the interpreter and wait for the primary prompt, >>>. (It shouldn’t take...
阅读全文
posted @
2015-03-14 00:09
Jeremy123
阅读(329)
推荐(0)
Pyhon 嵌入C/C++模块(一)
摘要:1 Extending Python with C or C++It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do...
阅读全文
posted @
2015-03-11 22:44
Jeremy123
阅读(407)
推荐(0)
eclipse + python
摘要:找了两篇参考博文,挺好的,http://www.cnblogs.com/linzhenjie/articles/2639113.htmlhttp://blog.chinaunix.net/uid-25365622-id-3073281.html
阅读全文
posted @
2014-12-17 13:32
Jeremy123
阅读(109)
推荐(0)