Concise Python Basic Learning Tutorial _python

Source: Internet
Author: User

Version: 1.20

A Byte of Python
copyright©2003-2005 Swaroop C H
Concise Python Tutorials
The Concise Python tutorial is the only specified simplified Chinese version of "a Byte of Python", copyright ©2005 Shen Jieyuan

This book is published in accordance with the Authoring Common Convention (signature-Non-derivative works-non-commercial use).

Profile

Whether you're just in touch with a computer or an experienced programmer, this book will help you learn how to use the Python language.


Objective
readers of this book
The
origin of the book
The
current state of the book
official website
agreed terms
Welcome to give me feedback
something worth thinking about.
1. Introduce
Brief Introduction
the characteristics of Python
Summarize
Why not use Perl?
Programmer's Words
2. Install Python
Linux and BSD users
windows® Users
Summarize
3. The initial steps
Brief 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
variable
Name of identifier
Data Type
Object
Output
How it works
logical rows and physical rows
Indent
Summarize
5. Operators and expressions
Brief Introduction
operator
Operator Precedence
Order of calculation
Binding Law
An expression
Use an expression
Summarize
6. Control Flow
Brief Introduction
If statement
use the IF statement
How it works
While
statement
using
the while statement
For
Loop
use for statement
Break
Statement
use
the break statement
Continue statement
using the Continue statement
Summarize
7. function
Brief Introduction
Defining Functions
function Parameters
using function Parameters
Local Variables
using local Variables
using the global statement
Default parameter values
Use default parameter values
Key Parameters
using key parameters
Return
Statement
use statements in a literal sense
docstrings
using Docstrings
Summarize
8. Module
Brief Introduction
using the SYS module
byte-compiled. pyc File
From
.. Import Statement
__name__ of the module
__name__ using the module
make your own module
Create your own module
From
.. Import
dir () function
using the Dir function
Summarize
9. Data structure
Brief Introduction
List
Quick start to objects and classes
Working with lists
META Group
using tuples
tuples and Print Statements
Dictionaries
Using Dictionaries
sequence
working with sequences
Reference
objects and references
more content of strings
method of String
Summarize
10. Solve the problem-write a Python script
problem
Solution
Version One
version Two
version Three
version Four
further optimization
Software Development Process
Summarize
11. Object-Oriented Programming
Brief Introduction
Self
class
Create a class
method of the object
ways to work with objects
__init__ Method
using the __init__ method
variables for classes and objects
using variables of classes and objects
inherited
using inheritance
Summarize
12. Input/Output
file
Working with Files
storage Device
Storage and
storage
Summarize
13. Abnormal
Error
try.. Except
Handling Exceptions
throw an exception
How to throw an exception
try.. Finally
Use finally
Summarize
Python Standard library
Brief Introduction
SYS module
Command Line Arguments
more information about SYS
OS Modules
Summarize
15. More content in Python
a special method
Single statement block
List Synthesis
Use list synthesis
to receive 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?
graphic 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 records
Timetable
Terminology List

Form

The 5.1 operators and their usage
5.2 Operator Precedence
15.1 some special methods.

Example

3.1 Using the 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 a 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 Use literal statements
7.8 using docstrings
8.1 Using the SYS module
8.2 __name__ using 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 tuple output
9.4 Using Dictionaries
9.5 Use sequence
9.6 Objects and references
10.1 Backup Script-version One
10.2 Backup Script--version two
10.3 Backup Script--version three (not working!) )
10.4 Backup Script--version four
11.1 Creating a class
11.2 Methods of using objects
11.3 Using the __init__ method
11.4 Variables that use classes and objects
11.5 Using inheritance
12.1 Working with files
12.2 Storage and storage
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.