- 浏览: 116220 次
- 性别:
最近访客 更多访客>>
文章分类
最新评论
-
差沙:
应该有django的Model
metaclass in python (part 1) -
beyking:
哈哈,恭喜
老子毕业了 -
towjzhou:
晕死,这种符号能打出来吗?
新的 pep ! -
xlp223:
好,需要这样的例子。自己用只能是从文档中获取一些,高级的用法, ...
SQLAlchemy Examples -
xlp223:
sql是个基础,脱离它去谈orm,有如纸上谈兵。
强大的 sqlalchemy
A Very Brief Introduction To Python And It's Data-Types
一篇短小精悍的 python tutorial 。对一些容易被忽视的问题讲得很清楚!很专业的 tutorial!摘录片段如下:
一篇短小精悍的 python tutorial 。对一些容易被忽视的问题讲得很清楚!很专业的 tutorial!摘录片段如下:
- The Python 'philosophy' emphasises readability, clarity and simplicity, whilst maximising the power and expressiveness available to the programmer.
看到这句话我不自觉地就想起了c++:“The c++ 'philosophy' emphasises performance, performance and performance, whilst maximising the power and expressiveness available to the programmer” ;-) 它们在各自的领域都做得很不错。 - The line of code x = 3 is a statement (more about that in a bit) which means it does a job. The job it does is to assign the value 3 to the variable 'x'. In Python terminology we say that it binds the name 'x' to the number three. This idea of variables being names bound to objects (or names which 'reference' objects) is important in Python.
- 'Under the hood' Python actually uses two types of integer, the integer and the 'long integer' for integers bigger than a certain amount.
- If you need to a lot of complicated maths with floating point numbers, then you may be interested in extensions like numpy or General Multiprecision Python project. These extensions provide very fast ways of doing mathematical operations. For normal use the capabilities built in to Python will be sufficient.
- The name 'string' probably comes from the fact that programming languages often treat text as a sequence of characters 'stringed' together.
- The basic string type (which I have called 'normal strings' below) store the text as a sequence of bytes (numbers) with one byte per character. .... They can also be used for storing binary data in.
- Unicode strings store text internally using the unicode standard. They are slightly more complicated, because you must know the 'encoding' the text is stored in whenever you read the text in or save it out. In the long run this can save a great deal of confusion.
- Because the interpreter knows the length and types of the members of a tuple, working with them can be more efficient than using a list.
- Dictionaries are an extremely useful and flexible datatype. In fact Python is built on them.
- Programs are actually compiled to byte-code before being executed, but the byte-code is then interpreted. In some ways this is similar to Java or .NET which also compile to byte-code. Because these languages are statically typed with JIT compiler, they are generally considered as compiled languages whilst Python is generally considered as being interpreted.
发表评论
-
如何在醉酒的情况下编写正确的程序
2007-06-22 09:12 1283答案很简单:Test Driven。哈哈,这个(http:// ... -
Evolution of a Python programmer
2007-05-26 07:51 1344http://dis.4chan.org/read/prog/ ... -
Python and vim: Two great tastes that go great together
2007-05-26 08:29 1678Python and vim: Two great taste ... -
字典与动态语言
2007-03-19 10:18 1357字典(或者叫哈希表、关联数组..)与动态语言的渊源可谓极深。动 ... -
使用 python 模拟 ruby 的 open class
2007-01-27 11:42 1268老早就写了这些代码,但一直懒得为它写篇博客,我觉得我永远也无法 ... -
do it runtime
2007-01-20 11:19 2609第一次从静态语言到动态语言的人肯定在思维上需要 ... -
PLY: 一个以教学为目的的lex、yacc实现
2006-09-16 12:37 3785官方网站 想学或正在学编译原理的同学可不要错过了,要是上个学期 ... -
意外收获:get_caller
2006-09-16 14:01 1200阅读 PLY 的 lex.py 的时候 ... -
python is obvious !
2006-09-18 17:40 1327初识 python 的时候常常会被一些陌生的概念绊倒,而当熟悉 ... -
compatibility of IronPython
2006-09-19 03:58 1716IronPython 1.0 的发布,在邮件列表中引起了很多争 ... -
Be Pythonic
2006-10-19 03:05 1101Be PythonicWhat is PythonicPyth ... -
metaclass in python (part 1)
2006-12-12 14:15 2618python 的东西虽然概念上容易理解 ,但是实际用起来却也不 ... -
metaclass in python (part 2)
2006-12-12 14:24 1747接着上一篇的讲。 现在我们知道了,metaclass 生 c ... -
python types and objects
2006-12-16 14:02 1305在探寻 metaclass 的过程 ... -
selfless python
2006-12-18 04:07 1060Eliminating self with Metaclass ... -
python virtual machines
2006-12-24 13:22 1466Jython,IronPython,PyPy。 ... -
理解 python 的 method 和 function 兼谈 descriptor
2007-01-01 07:34 4891总是看到有人对 python 中的 method 和 func ... -
写了个方便下载 tudou 网视频的小程序
2007-01-09 12:26 1720http://huangyilib.googlecode.co ... -
Build extensible application with egg
2007-01-17 02:49 1753在 python 社区中 egg 已经 ...
相关推荐
a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid ...
Python is an interpreted language that has become popular with many programmers and ...Read more: Python SSL Tutorial | eHow.com http://www.ehow.com/how_7552729_python-ssl-tutorial.html#ixzz1hH81k1Pc
The Python Tutorial 1 1. Whetting Your Appetite 4 2. Using the Python Interpreter 6 2.1. Invoking the Interpreter 7 2.1.1. Argument Passing 8 2.1.2. Interactive Mode 8 2.2. The Interpreter and Its ...
The code is a Python tutorial for Selective Search using OpenCV 3.3.
通过一个实例代码完全描述了决策树的构造过程。具有很好的学习和借鉴意义。(PDF文档)
Hands-On Python A Tutorial Introduction for Beginners. Python 3.1 Version. Computer Science Department, Loyola University Chicago
3.1 将Python当作计算器使用 Using Python as a Calculator 3.1.1 数值 Numbers 3.1.2 字符串 Strings 3.1.3 Unicode 字符串 Unicode Strings 3.1.4 链表 Lists 3.2 开始编程 First Steps Towards Programming
of the official Python Tutorial. That is true, but there is a catch: because the language is easy to learn and put to use, many practicing Python programmers leverage only a fraction of its powerful ...
It serves as a tutorial or guide to the Python language for a beginner audience. If all you know about computers is how to save text files, then this is the book for you. This book is updated for ...
It helps to have a Python interpreter handy for hands-on experience, but all examples are self-contained, so the tutorial can be read off-line as well. 本手册向读者介绍 Python 语言及其系统的基本知识...
'A Byte of Python' is a book ... It serves as a tutorial or guide to the Python language for a beginner audience. If all you know about computers is how to save text files, then this is the book for you.
'A Byte of Python' is a book ... It serves as a tutorial or guide to the Python language for a beginner audience. If all you know about computers is how to save text files, then this is the book for you.
This brief tutorial provides a quick introduction to Big Data, MapReduce algorithm, and Hadoop Distributed File System.
A Byte of Python.pdf (2017... It serves as a tutorial or guide to the Python language for a beginner audience. If all you know about computers is how to save text files, then this is the book for you.
A tutorial for Python Python is a widely used general-purpose, high-level programming language.[17][18][19] Its design philosophy emphasizes code readability, and its syntax allows programmers to ...
A INTRODUCTION TO PYTHON
This book serves as a guide or tutorial to the Python programming language. It is mainly targeted at newbies. It is useful for experienced programmers as well. The aim is that if all you know about ...
Python Cheat Sheet by Mosh Hamedani...If you want to learn everything Python has to offer and become a Python expert, check out my Complete Python Programming Course: http://bit.ly/complete-python-course
'A Byte of Python' is a book ... It serves as a tutorial or guide to the Python language for a beginner audience. If all you know about computers is how to save text files, then this is the book for you.
Complete with quizzes, exercises, and helpful illustrations, this easy-to-follow, self-paced tutorial gets you started with both Python 2.7 and 3.3— the latest releases in the 3.X and 2.X lines—plus...