python语言
文章平均质量分 85
Rabbit_Nick
这个作者很懒,什么都没留下…
展开
-
《dinv into python》开始了解pyth…
1.2. 声明函数象大多数其它语言,Python拥有函数。但是不象C++或Java,它没有独立的接口声明和实现声明。一旦需要一个函数,声明它,编码就行了。根据上个例子:dive into python有写道:def buildConnectionString(params):有几件事情需要注意的。首先,关键字 def为函数声明的开始。不象VB,Python并不区分有原创 2013-05-24 16:59:38 · 870 阅读 · 0 评论 -
The Python Tutorial » 5. D…
5. Data Structures¶This chapterdescribes some things you’ve learned about already in more detail,and adds some new things as well.加了一些新东西而已5.1. More on ListsThe list datatype has some more met原创 2013-05-24 17:00:29 · 796 阅读 · 0 评论 -
The Python Tutorial 4. More Con…
4.7.5.Lambda FormsBy popular demand, a few features commonlyfound in functional programming languages like Lisp have been addedto Python. With the lambda keyword, smallanonymous functions can be原创 2013-05-24 17:00:27 · 511 阅读 · 0 评论 -
以后不看DIVE INTO PYTHON了,对PY…
INTO PYTHON了,对PYTHON学习不好。。。" TITLE="以后不看DIVE INTO PYTHON了,对PYTHON学习不好。。。" />白看了几天。。其实看得半懂半不懂。。。而且网上有个大牛觉得这本书很不掂。。。还是看官方的教程比较好:网址:http://docs.python.org/tutorial/controlflow.html#more-on-defini原创 2013-05-24 17:00:25 · 528 阅读 · 0 评论 -
dive into python 第 5 章 对象和…
第 5 章 对象和面向对象5.1. 概览5.2. 使用 from module import 导入模块5.3. 类的定义5.3.1. 初始化并开始类编码5.3.2. 了解何时去使用 self 和 __init__5.4. 类的实例化5.4.1. 垃圾回收5.5. 探索 UserDict:一个封装类5.6. 专用类方法5.6.1. 获得原创 2013-05-24 17:00:23 · 997 阅读 · 0 评论 -
anyway,gnuradio需要学习python,s…
不得不说python有几个网站:GNURADIO上说的网站:http://docs.python.org/tutorial/introduction.html还有自己搜索到:http://diveintopython.org/我自己的硬件环境:CPU:I3 530内存:4GOS:Ubuntu 10.4第一,安装,在命令行下打入python,发现没按照,输入sudo apt-get原创 2013-05-24 16:59:36 · 576 阅读 · 0 评论 -
python 中用SWIG包装C和C++和接口…
SWIG是简单包装和接口生成器的缩写,它是一个能用于用于集中语言的工具。一方面,可以通过它使用C语言或者C++编写扩展代码;另一方面,它会自动包装那些代码,以便能在一些高级语言中使用,例如TclPython Perl Ruby java.这就意味着如果决定将系统的一部分使用C语言扩展编写,而不是直接在Python中实现的话,那么C语言扩展库也能在其他语言中使用。当然需要一些不同语言编写的子系统原创 2013-05-24 17:01:07 · 611 阅读 · 0 评论 -
Python 里边的parser用法
2011-8-23Python 里边的parser用法 15.5. optparse — Parser forcommandline optionshttp://docs.python.org/library/optparse.html Here’s an example ofusing optparse in a simplescript:from optparse原创 2013-05-24 17:00:40 · 2249 阅读 · 1 评论 -
The Python Tutorial 9. Classes
Python Tutorial 9. Classes" TITLE="The Python Tutorial 9. Classes" />时间不够直接跳过前边一些东西,从9.3开始 9.3. A First Look at ClassesClasses introducea little bit of new syntax, three new object types, and原创 2013-05-24 17:00:36 · 543 阅读 · 0 评论 -
Dive into python 第4章 自省的威…
来自:http://www.kuqin.com/docs/diveintopythonzh-cn-5.4b/html/power_of_introspection/index.html第四章 自省的威力本章论述了 Python 众多强大功能之一:自省。正如你所知道的,万物皆对象" HREF="http://www.kuqin.com/docs/diveintopythonzh-cn-5.4原创 2013-05-24 16:59:43 · 816 阅读 · 0 评论 -
The Python Tutorial 6. Modules …
6. ModulesIf you quit fromthe Python interpreter and enter it again, the definitions you havemade (functions and variables) are lost. Therefore, if you want towrite a somewhat longer program, you原创 2013-05-24 17:00:33 · 678 阅读 · 0 评论