A book every week "Python Programming Quick Start allows automation of tedious work," Share!

Introduction
Today, most people are faced with the task can be accomplished by writing computer software. Python is an interpreted, object-oriented, dynamic data type of high-level programming language. By Python programming, we can solve many real-life tasks.

This book is a practical guide for the Python programming practice. The purpose of this book is to introduce not only the basics of the Python language, but also how to apply this knowledge and skills through practical projects church reader. The first part of the book introduces the basic concepts of programming Python, the second section describes a number of different tasks by writing Python program that allows the computer to automatically complete them. Each chapter has a number of projects the second part of the program for readers to learn. End of each chapter also provides some exercises and in-depth practical projects to help readers to consolidate what they have learned. The appendix provides answers to all the exercises.

This book for any reader wants to learn programming with Python, especially for the lack of basic programming beginners. By reading this book, readers will be able to take advantage of powerful programming languages ​​and tools, and will experience the joy of Python programming.

A book every week "Python Programming Quick Start allows automation of tedious work," Share!

The authors introduce
Al Sweigart is a software developer, also taught children and adult programming. He wrote several books for beginners Python, including "Programming Python cryptography", "Game Programming Python Quick Start" and "Python and Pygame Game Developer's Guide."

Directory
first portion Python programming based on
chapter basis. 1 Python 3
1.1 Expression input in an interactive environment 3
1.2 integer, floating point and string data types 6
1.3 replication and concatenation 6
1.4 7 stored in a variable value
1.4 .1 assignment 7
1.4.2 variable names 9
1.5 first program 9
1.6 analysis program 11
1.6.1 Notes 11
1.6.2 Print () function 11
1.6.3 the INPUT () function 11
1.6.4 print name of the user 12
1.6.5 len () function 12 is
1.6.6 STR (), int () and float () function 13
1.7 15 Summary
1.8 exercises 15
Chapter 2 flow control 17
2.1 18 Boolean
2.2 comparison operator 19
2.3 Boolean operators 20
2.3.1 dyadic Boolean operator 20 is
2.3.2 Not operator 21
2.4 mixed Boolean and comparison operators 21
2.5 flow control element 22
2.5.1 22 condition
2.5.2 code blocks 22
2.6 23 program execution
2.7 control flow statements 23
2.7.1 if statement 23
2.7.2 else statement 24
2.7.3 elif statement 25
2.7.4 30 the while loop
2.7.5 annoying loop 31 is
2.7.6 BREAK statement 33 is
2.7.7 Continue statement 34 is
2.7.8 for loop and range () function 37
2.7 .9 equivalent while loop 39
2.7.10 Range () start, stop, and step-size parameter 39
2.8 import module 40
from 41 import statement
2.9 with the sys.exit () before the program ends 41
2.10 Summary 41
2.11 41 exercises
3 function Cap 43 is
3.1 DEF statements and parameters 44
3.2 return value and return statement 45
3.3 46 None value
3.4 keyword parameter and Print () 47
3.5 48 local and global scope
3.5.1 local variables can not be used in the global scope 48
3.5. 2 the local scope or use other variables local scope 49
3.5.3 global variables can be read in a local scope 49
3.5.4 name the same local and global variables 50
3.6 global statement
......

END

If you want to download address, micro-letter search concern "Institute of Computing Training Center" public numbers, adding Institute of Computing Training Center assistant "zhongkeyuanjss666", help to enter the Institute of Computing IT technology sharing group, the group share the address.

Guess you like

Origin blog.51cto.com/14242083/2404077