-
124
pages
-
English
-
Documents
Description
Python TutorialRelease3.1.2Guido van RossumFred L. Drake, Jr., editorOctober 06, 2010Python Software FoundationEmail: docs@python.orgCONTENTS1 Whetting Your Appetite 32 Using the Python Interpreter 52.1 Invoking the Interpreter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52.2 The Interpreter and Its Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 An Informal Introduction to Python 93.1 Using Python as a Calculator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.2 First Steps Towards Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 More Control Flow Tools 194.1 if Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194.2 for . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194.3 Therange() Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204.4 break andcontinue Statements, andelse Clauses on Loops . . . . . . . . . . . . . . . . . 214.5 pass Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214.6 Defining Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224.7 More on Defining Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234.8 Intermezzo: Coding Style . . . . . . . . . . . . . ...
-
Publié par
-
Langue
English