| Despabilando la MonoNeurona::Internet es de todos [Inicio] [Regresar] |
|
Server Side \ Python Book Python Book
Este artículo ha sido consultado en 183 ocasiones.
Chapter 2. Your First Python Program................................9
2.1. Diving in.............................................................................................................9
2.2. Declaring Functions.........................................................................................9
2.3. Documenting Functions...............................................................................10
2.4. Everything Is an Object...............................................................................11
2.5. Indenting Code..................................................................................................13
2.6. Testing Modules .....................................................................................14
Chapter 3. Native Datatypes......................................................................................15
3.1. Introducing Dictionaries...........................................................................15
3.2. Introducing Lists....................................................................................17
3.3. Introducing Tuples........................................................22
3.4. Declaring variables.........................................................23
3.5. Formatting Strings.........................................................25
3.6. Mapping Lists..........................................................................26
3.7. Joining Lists and Splitting Strings.................................28
3.8. Summary........................................................29
Chapter 4. The Power Of Introspection ........31
4.1. Diving In...............................................................................31
4.2. Using Optional and Named Arguments....................................................32
4.3. Using type, str, dir, and Other BuiltâIn Functions....................................33
4.4. Getting Object References With getattr............................................36
4.5. Filtering Lists................................................................................38
4.6. The Peculiar Nature of and and or...........................................39
4.7. Using lambda Functions.......................................................41
4.8. Putting It All Together....................................................43
4.9. Summary......................................................................................45
Download book
Última actualización: 2008-04-04 21:23:36-06
|