| Projets |
88 Visiteurs 3168 Projets
|
|
 |
 |
 |
 |
|
|
| 2005 - Pérennisation |
Snake path into Python
[25 mn de lecture - paru le 5/18/2005 11:45:58 AM - Public : Confirmé]
|
   
|
Auteur
ResumeThis article does not intend to learn all the Snake's secrets, in fact, this would require a good physical book or an e-book.
This article is there to provide you some tracks and tips to dive into
Python quickly, to continue your learning, and to be honest : my best
wish is that you fall in love with Python.
The main question is how to start, the answer is here! We're going to
help you to setup Python then we'll teach you the basics of Python.
Sommaire
- Introduction
- How to Setup Python
- 1.1 Microsoft Windows
- 1.2 Linux
- 1.3 Mac Os X
- Primary types
- 3.1 Numbers
- 3.2 Booleans
- 3.3 Strings
You surely noticed it, character strings in Python must be quoted! They can be put between simple, double even triple quotes. Simple the quotes is the result of a basic adaptation of the provision of the keyboard in qwerty where this typography is very accessible, the doubles quotes correspond they to a concern of integrating simple quotes inside even of the accused chain. Triple quotes as for them are quite simply the result of an intelligent observation: the programmers needed a means to enter the character strings in a simple way without being bored with the escape characters, in particular famous "the \n" for the return to the line. It is thus possible to carry out without problems the code
>>> a=''' Bonjour
... je suis un texte
... qui tiens sur plusieurs lignes
... ''
... '
... '''
>>> print a
Bonjour
je suis un texte
qui tiens sur plusieurs lignes
''
Composed Types
We will discuss in this section about advanced variable type, more
practical and especially built on the preceding types which we
mentioned. It is necessary to have assimilated the concepts presented
in previous chapters before starting. That's why we recommend you to
exert you with small simple games: open your Python interpreter,
familiarize with him and to test the function type(nom_variable). 4.1 Tuples
- Composed Types
- 4.1 Tuples
- 4.3 Dictionaries
- 4.4 the type None
- Conclusion
|
|
|
 |
 |
 |
 |
| Articles de la même catégorie |
|
|
|
 |
 |
 |
 |
| SUPINFO Training Center peut vous proposer une formation ... |
|
|
|
 |
 |
 |
 |
|