资源预览内容
第1页 / 共109页
第2页 / 共109页
第3页 / 共109页
第4页 / 共109页
第5页 / 共109页
第6页 / 共109页
第7页 / 共109页
第8页 / 共109页
第9页 / 共109页
第10页 / 共109页
亲,该文档总共109页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
A Byte of PythonSwaroop C HA Byte of Python Swaroop C H Copyright 2003-2005 Swaroop C HAbstractThis book will help you to learn the Python programming language, whether you are new to computers or are an experienced programmer.This book is released under the Creative Commons Attribution-NonCommercial-ShareAlike License 2.0 .Table of ContentsPreface .x Who This Book Is For .x History Lesson .x Status of the book .x Official Website .xi License Terms .xi Feedback .xi Something To Think About .xi 1. Introduction .1 Introduction .1 Features of Python .1 Summary .2 Why not Perl? .3 What Programmers Say .3 2. Installing Python .4 For Linux/BSD users .4 For Windows Users .4 Summary .5 3. First Steps .6 Introduction .6 Using the interpreter prompt .6 Choosing an Editor .6 Using a Source File .7 Output .7 How It Works .8 Executable Python programs .8 Getting Help .9 Summary . 10 4. The Basics . 11 Literal Constants . 11 Numbers . 11 Strings . 11 Variables . 13 Identifier Naming . 13 Data Types . 14 Objects . 14 Output . 15 How It Works . 15 Logical and Physical Lines . 15 Indentation . 17 Summary
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号