A Concise Python tutorial |
|
Next page |
Concise Python tutorial Swaroop, C. H. Shen Jieyuan translation
Version: 1.20
-
A Byte of Python
-
copyright©2003-2005 Swaroop C H
-
A Concise Python tutorial
The
-
concise Python tutorial is the only specified Simplified Chinese translation of "A Byte of Python", copyright ©2005 Shen Jieyuan
This book is published in accordance with the authoring common Agreement (Attribution-Non-derivative works-non-commercial use) .
Profile
Whether you're new to a computer or an experienced programmer, this book will help you learn how to use the Python language.
Catalog table
-
-
Objective
-
-
readers of this book
-
-
The origin of the book
-
The
-
current state of the book
-
-
official website
-
-
agreed terms
-
-
Welcome to my feedback
-
-
something worth thinking about.
-
-
1. Introduction
-
-
Introduction
-
-
features of Python
-
-
Summarize
-
-
Why not use Perl?
-
-
Programmer's Words
-
-
2. Install Python
-
-
Linux and BSD users
-
-
windows® Users
-
-
Summarize
-
-
3. The initial steps
-
-
Introduction
-
-
using an interpreter with a prompt
-
-
Pick an editor
-
-
working with source files
-
-
Output
-
-
How it works
-
-
executable Python program
-
-
Get help
-
-
Summarize
-
-
4. Basic Concepts
-
-
constants in literal sense
-
-
number
-
-
string
-
-
variables
-
-
name of the identifier
-
-
Data Type
-
-
Object
-
-
Output
-
-
How it works
-
-
logical lines vs. physical lines
-
-
Indent in
-
-
Summarize
-
-
5. Operators and expressions
-
-
Introduction
-
-
operator
-
-
Operator Precedence
-
-
Calculation Order
-
-
Binding Law
-
-
An expression
-
-
using an expression
-
-
Summarize
-
-
6. Control Flow
-
-
Introduction
-
-
If statement
-
-
using the IF statement
-
-
How it works
-
While
-
statement
-
-
using
the while statement
-
For
-
Loop
-
-
using
the For statement
-
Break
-
Statement
-
-
using
the break statement
-
-
Continue statements
-
-
using the Continue statement
-
-
Summarize
-
-
7. Functions
-
-
Introduction
-
-
Defining Functions
-
-
function Formal Parameters
-
-
using function Parameters
-
-
Local Variables
-
-
using local Variables
-
-
using the global statement
-
-
Default parameter values
-
-
using default parameter values
-
-
Key Parameters
-
-
using key parameters
-
-
Return Statement
-
-
use a literal statement
-
-
docstrings
-
-
using Docstrings
-
-
Summarize
-
-
8. Module
-
-
Introduction
-
-
using the SYS module
-
-
byte-compiled. pyc Files
-
From
-
.. Import Statement
-
-
__name__ of the module
-
-
using the __name__ of the module
-
-
make your own module
-
-
Create your own module
-
From
-
.. Import
-
-
dir () function
-
-
using the Dir function
-
-
Summarize
-
-
9. Data structure
-
-
Introduction
-
-
List
-
-
Quick Start for objects and classes
-
-
Working with lists
-
-
Meta-group
-
-
working with tuples
-
-
tuples and Print Statements
-
-
Dictionary
-
-
Using Dictionaries
-
-
sequence
-
-
using sequences
-
-
Reference
-
-
objects and references
-
-
the contents of more strings
-
-
method of String
-
-
Summarize
-
-
10. Solve the problem-write a Python script
-
-
problem
-
-
Solution
Solutions
-
-
Version One
-
-
version Two
-
-
version Three
-
-
version Four
-
-
further optimization
-
-
Software Development Process
-
-
Summarize
-
-
11. Object-Oriented Programming
-
-
Introduction
-
Self
-
-
class
-
-
Create a class
-
-
methods of the object
-
-
ways to use objects
-
-
__init__ Method
-
-
using the __init__ method
-
-
variables for classes and objects
-
-
variables that use classes and objects
-
-
Inheritance
-
-
using inheritance
-
-
Summarize
-
-
12. Input/Output
-
-
file
-
-
Working with Files
-
-
storage Device
-
-
store and Fetch storage
-
-
Summarize
-
-
13. Exceptions
-
-
Error
-
-
Try: Except
-
-
Handling Exceptions
-
-
Throw Exception
-
-
How to throw an exception
-
-
Try: Finally
-
-
Use finally
-
-
Summarize
-
-
Python Standard library
-
-
Introduction
-
-
SYS module
-
-
command-line arguments
-
-
more Sys's content
-
-
OS module
-
-
Summarize
-
-
15. More Python Content
-
-
a special method
-
-
Single statement block
-
-
List Synthesis
-
-
Use list synthesis
-
-
receiving tuples and lists in a function
-
-
Lambda Form
-
-
Use lambda form
-
-
EXEC and eval statements
-
-
Assert Statement
-
-
repr function
-
-
Summarize
-
-
16. What to learn next?
-
-
Graphics Software
-
-
GUI Tools Overview
-
-
Explore more content
-
-
Summarize
-
-
A. Free/Open source software (FLOSS)
-
-
B. About the book
-
-
PostScript
-
-
about the author
-
-
about Translators
-
-
about Simplified Chinese translation
-
-
C. Revision history
-
-
Timetable
-
-
List of terms
Form
-
5.1 Operators and their usage
-
5.2 Operator Precedence
-
15.1 Some special methods
Example
-
-
3.1 Using a Python interpreter with a prompt
-
-
3.2 Using source files
-
-
4.1 Using variables and literal constants
-
-
5.1 Using an expression
-
-
6.1 Using the IF statement
-
-
6.2 Using the While statement
-
-
6.3 Using the For statement
-
-
6.4 Using the break statement
-
-
6.5 Using the Continue statement
-
-
7.1 Defining functions
-
-
7.2 Using function parameters
-
-
7.3 Using local Variables
-
-
7.4 Using the global statement
-
-
7.5 Using default parameter values
-
-
7.6 Using key parameters
-
-
7.7 Using a literal statement
-
-
7.8 using docstrings
-
-
8.1 Using the SYS module
-
-
8.2 Using the __name__ of the module
-
-
8.3 How to create your own module
-
-
8.4 Using the Dir function
-
-
9.1 Using the list
-
-
9.2 Using tuples
-
-
9.3 Using meta-group output
-
-
9.4 Using Dictionaries
-
-
9.5 Using sequences
-
-
9.6 Objects and references
-
-
10.1 Backup Scripts--Version One
-
-
10.2 Backup Scripts--Version Two
-
-
10.3 Backup Scripts--version three (not working!) )
-
-
10.4 Backup Scripts--version Four
-
-
11.1 Creating a class
-
-
11.2 Ways to use objects
-
-
11.3 Using the __init__ method
-
-
11.4 Using variables for classes and objects
-
-
11.5 Using inheritance
-
-
12.1 Working with files
-
-
12.2 Storage and Collection
-
-
13.1 Handling Exceptions
-
-
13.2 How to throw an exception
-
-
14.1 Using SYS.ARGV
-
-
15.1 Use list synthesis
-
-
15.2 using lambda form
"Reprint" Concise Python tutorial