`
huangyiiiiii
  • 浏览: 116220 次
  • 性别: Icon_minigender_1
最近访客 更多访客>>
社区版块
存档分类
最新评论

a python tutorial

阅读更多
A Very Brief Introduction To Python And It's Data-Types

一篇短小精悍的 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. Smile
  • 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.
分享到:
评论

相关推荐

    Python3.7 Tutorial mobi

    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 SSL Tutorial

    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

    Python Tutorial 入门指南3.6英文版

    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 ...

    Python+OpenCV实现Selective Search算法

    The code is a Python tutorial for Selective Search using OpenCV 3.3.

    A Complete Tutorial on Tree Based Modeling from Scratch (in R——& Python)

    通过一个实例代码完全描述了决策树的构造过程。具有很好的学习和借鉴意义。(PDF文档)

    Hands-On Python A Tutorial Introduction for Beginners Python 3.1 Version

    Hands-On Python A Tutorial Introduction for Beginners. Python 3.1 Version. Computer Science Department, Loyola University Chicago

    Python Tutorial

    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

    Fluent Python 原版pdf by Ramalho

    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 ...

    A Byte of Python v1.92 (for Python 3.0).rar

    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 ...

    python_2.7_tutorial_cn.pdf

    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

    '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

    '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.

    hadoop tutorial 英文版

    This brief tutorial provides a quick introduction to Big Data, MapReduce algorithm, and Hadoop Distributed File System.

    A Byte of Python.pdf (2017英文版-简明Python教程)

    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.

    Python_tutorial

    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 ...

    Tutorial Python

    A INTRODUCTION TO PYTHON

    a byte of python (for python3.0)

    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.pdf

    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》PDF

    '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.

    Learning Python 5th edition

    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...

Global site tag (gtag.js) - Google Analytics