Learning Python

Capa
"O'Reilly Media, Inc.", 22 de out de 2007 - 752 páginas

Portable, powerful, and a breeze to use, Python is ideal for both standalone programs and scripting applications. With this hands-on book, you can master the fundamentals of the core Python language quickly and efficiently, whether you're new to programming or just new to Python. Once you finish, you will know enough about the language to use it in any application domain you choose.

Learning Python is based on material from author Mark Lutz's popular training courses, which he's taught over the past decade. Each chapter is a self-contained lesson that helps you thoroughly understand a key component of Python before you continue. Along with plenty of annotated examples, illustrations, and chapter summaries, every chapter also contains Brain Builder, a unique section with practical exercises and review quizzes that let you practice new skills and test your understanding as you go.

This book covers:

  • Types and Operations -- Python's major built-in object types in depth: numbers, lists, dictionaries, and more


  • Statements and Syntax -- the code you type to create and process objects in Python, along with Python's general syntax model


  • Functions -- Python's basic procedural tool for structuring and reusing code


  • Modules -- packages of statements, functions, and other tools organized into larger components


  • Classes and OOP -- Python's optional object-oriented programming tool for structuring code for customization and reuse


  • Exceptions and Tools -- exception handling model and statements, plus a look at development tools for writing larger programs
Learning Python gives you a deep and complete understanding of the language that will help you comprehend any application-level examples of Python that you later encounter. If you're ready to discover what Google and YouTube see in Python, this book is the best way to get started.
 

O que estão dizendo - Escrever uma resenha

Avaliações de usuários

5 estrelas
11
4 estrelas
11
3 estrelas
6
2 estrelas
0
1 estrela
0

LibraryThing Review

Comentário do usuário  - Cald - LibraryThing

Great introduction to Python. I went through quickly through it without a computer to grasp the syntax, and was later able to start writing my first programs. Although some might argue that there you can find the same content on the Internet, it's much easier for me to read from a book. Ler resenha completa

Comentário do usuário - Sinalizar como impróprio

Excelente livro.
Didática simples, prática e funcional.

Conteúdo

Functions
299
Scopes and Arguments
310
Advanced Function Topics
344
PartV Modules
385
Module Coding Basics
398
Module Packages
415
Advanced Module Topics
426
Classes and
451

The Dynamic Typing Interlude
112
Strings
123
Changing Strings
139
General Type Categories
149
Lists and Dictionaries
152
Tuples Files and Everything Else
172
Statements and Syntax
201
Assignment Expressions and print
217
if Tests
236
while and for Loops
248
The Documentation Interlude
278
Class Coding Basics
465
Class Coding Details
481
Designing with Classes
518
Advanced Class Topics
539
Exceptions and Tools
575
Exception Objects
602
Designing with Exceptions
617
Appendixes
639
Index
681
Direitos autorais

Outras edições - Visualizar todos

Termos e frases comuns

Passagens mais conhecidas

Página 52 - copyright", "credits" or "licensed" for more information. Personal firewall software may warn about the connection IDLE makes to it; subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. IDLE 1.1.2 >:> Hello. WORA Concept Sun Microsystems use the (trademarked) phrase 'write once, run anywhere
Página 73 - endswith' , 'expandtabs' , 'find', 'index', 'isalnum', ' isalpha' , 'isdigit', 'islower', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'Istrip', 'replace', 'rf ind' , 'rindex', 'rjust', 'rstrip', 'split', 'splitlines' , 'startswith' , 'strip', 'swapcase', 'title', 'translate', 'upper'] We have developed a module DP, which contains the FieldLattice functionallity.
Página 70 - Python uses zero-based indexes: the first item is at index 0, the second is at index 1, and so on. The index of the last item is the length of the sequence minus 1— that is, len(s) - 1.
Página xxix - Third Edition In the four years since the second edition of this book was published...

Informações bibliográficas