Muutke küpsiste eelistusi

Python: Visual QuickStart Guide 3rd edition [Pehme köide]

  • Formaat: Paperback / softback, 224 pages, kõrgus x laius x paksus: 228x181x11 mm, kaal: 436 g
  • Sari: Visual QuickStart Guide
  • Ilmumisaeg: 25-Jul-2013
  • Kirjastus: Peachpit Press Publications
  • ISBN-10: 0321929551
  • ISBN-13: 9780321929556
Teised raamatud teemal:
  • Formaat: Paperback / softback, 224 pages, kõrgus x laius x paksus: 228x181x11 mm, kaal: 436 g
  • Sari: Visual QuickStart Guide
  • Ilmumisaeg: 25-Jul-2013
  • Kirjastus: Peachpit Press Publications
  • ISBN-10: 0321929551
  • ISBN-13: 9780321929556
Teised raamatud teemal:
A guide to the Python computer language covers such topics as strings and variables, functions, data structures, exception handling, and object-oriented programming.

Python is a remarkably powerful dynamic programming language used in a wide variety of situations such as Web, database access, desktop GUIs, game and software development, and network programming. Fans of Python use the phrase "batteries included" to describe the standard library, which covers everything from asynchronous processing to zip files. The language itself is a flexible powerhouse that can handle practically any application domain.

This task-based tutorial on Python is for those new to the language and walks you through the fundamentals. You'll learn about arithmetic, strings, and variables; writing programs; flow of control, functions; strings; data structures; input and output; and exception handling. At the end of the book, a special section walks you through a longer, realistic application, tying the concepts of the book together.
Chapter 1 Introduction to Programming
1(8)
The Python Language
2(1)
What Is Python Useful For?
3(1)
How Programmers Work
4(2)
Installing Python
6(3)
Chapter 2 Arithmetic, Strings, and Variables
9(22)
The Interactive Command Shell
10(1)
Integer Arithmetic
11(2)
Floating Point Arithmetic
13(3)
Other Math Functions
16(1)
Strings
17(2)
String Concatenation
19(1)
Getting Help
20(2)
Converting Between Types
22(2)
Variables and Values
24(2)
Assignment Statements
26(2)
How Variables Refer to Values
28(1)
Multiple Assignment
29(2)
Chapter 3 Writing Programs
31(12)
Using IDLE's Editor
32(3)
Compiling Source Code
35(1)
Reading Strings from the Keyboard
36(3)
Printing Strings on the Screen
39(2)
Source Code Comments
41(1)
Structuring a Program
42(1)
Chapter 4 Flow of Control
43(24)
Boolean Logic
44(5)
If-Statements
49(2)
Code Blocks and Indentation
51(3)
Loops
54(5)
Comparing For-Loops and While-Loops
59(5)
Breaking Out of Loops and Blocks
64(2)
Loops Within Loops
66(1)
Chapter 5 Functions
67(16)
Calling Functions
68(2)
Defining Functions
70(3)
Variable Scope
73(2)
Using a main Function
75(1)
Function Parameters
76(4)
Modules
80(3)
Chapter 6 Strings
83(18)
String Indexing
84(3)
Characters
87(2)
Slicing Strings
89(3)
Standard String Functions
92(6)
Regular Expressions
98(3)
Chapter 7 Data Structures
101(22)
The type Command
102(1)
Sequences
103(1)
Tuples
104(4)
Lists
108(2)
List Functions
110(3)
Sorting Lists
113(2)
List Comprehensions
115(3)
Dictionaries
118(4)
Sets
122(1)
Chapter 8 Input and Output
123(20)
Formatting Strings
124(2)
String Formatting
126(2)
Reading and Writing Files
128(3)
Examining Files and Folders
131(3)
Processing Text Files
134(4)
Processing Binary Files
138(3)
Reading Webpages
141(2)
Chapter 9 Exception Handling
143(10)
Exceptions
144(2)
Catching Exceptions
146(4)
Clean-Up Actions
150(3)
Chapter 10 Object-Oriented Programming
153(24)
Writing a Class
154(2)
Displaying Objects
156(4)
Flexible Initialization
160(2)
Setters and Getters
162(6)
Inheritance
168(3)
Polymorphism
171(4)
Learning More
175(2)
Chapter 11 Case Study: Text Statistics
177(18)
Problem Description
178(2)
Keeping the Letters We Want
180(2)
Testing the Code on a Large Data File
182(2)
Finding the Most Frequent Words
184(3)
Converting a String to a Frequency Dictionary
187(1)
Putting It All Together
188(2)
Exercises
190(2)
The Final Program
192(3)
Appendix A Popular Python Packages
195(4)
Some Popular Packages
196(3)
Appendix B Comparing Python 2 and Python 3
199(4)
What's New in Python 3
200(3)
Index 203
Toby Donaldson is a senior lecturer in the School of Computer Science at Simon Fraser University in Vancouver, Canada. He has more than a dozen years of experience teaching programming and computer science to students of all levels. He has a Ph.D. in artificial intelligence and is still looking for ways to apply it to his robotic vacuum. When he is not teaching Python, he likes to juggle anything he can get his hands on.