《Starting Out with Python》

《Starting Out with Python》 《Starting Out with Python》

  • 书名:《Starting Out with Python》
  • 分类:编程
  • 作者:Gaddis, Tony
  • 出版社:Addison-Wesley
  • 出版年:2011-3
  • 售价:703.00元
  • 装订:平装
  • 页码:648

《Starting Out with Python》 内容介绍:

In Starting Out with Python ® , Second Edition Tony Gaddis’ evenly-paced, accessible coverage introduces students to the basics of programming and prepares them to transition into more complicated languages. Python, an easy-to-learn and increasingly popular object-oriented language, allows readers to become comfortable with the fundamentals of programming without the troublesome syntax that can be challenging for novices. With the knowledge acquired using Python, students gain confidence in their skills and learn to recognize the logic behind developing high-quality programs. Starting Out with Python discusses control structures, functions, arrays, and pointers before objects and classes. As with all Gaddis texts, clear and easy-to-read code listings, concise and practical real-world examples, detail-oriented explanations, and an abundance of exercises appear in every chapter. This text is intended for a one-semester introductory programming course for students with limited programming experience.

《Starting Out with Python》 目录大纲:

Preface xi
Chapter 1 Introduction to Computers and Programming 1
1.1 Introduction 1
1.2 Hardware and Software 2
1.3 How Computers Store Data 8
1.4 How a Program Works 13
1.5 Using Python 20
Chapter 2 Input, Processing, and Output 31
2.1 Designing a Program 31
2.2 Input, Processing, and Output 35
2.3 Displaying Output with the print Function 36
2.4 Comments 39
2.5 Variables 40
2.6 Reading Input from the Keyboard 49
2.7 Performing Calculations 53
2.8 More About Data Output 65
Chapter 3 Simple Functions 81
3.1 Introduction to Functions 81
3.2 Defining and Calling a Function 83
3.3 Designing a Program to Use Functions 89
3.4 Local Variables 95
3.5 Passing Arguments to Functions 97
3.6 Global Variables and Global Constants 107
Chapter 4 Decision Structures and Boolean Logic 117
4.1 The if Statement 117
4.2 The if-else Statement 125
4.3 Comparing Strings 130
4.4 Nested Decision Structures and the if-elif-else Statement 134
4.5 Logical Operators 142
4.6 Boolean Variables 149
Chapter 5 Repetition Structures 157
5.1 Introduction to Repetition Structures 157
5.2 The while Loop: a Condition-Controlled Loop 158
5.3 The for Loop: a Count-Controlled Loop 167
5.4 Calculating a Running Total 179
5.5 Sentinels 182
5.6 Input Validation Loops 185
5.7 Nested Loops 190
Chapter 6 Value-Returning Functions and Modules 203
6.1 Introduction to Value-Returning Functions: Generating Random Numbers 203
6.2 Writing Your Own Value-Returning Functions 214
6.3 The math Module 225
6.4 Storing Functions in Modules 228
Chapter 7 Files and Exceptions 239
7.1 Introduction to File Input and Output 239
7.2 Using Loops to Process Files 256
7.3 Processing Records 263
7.4 Exceptions 276
Chapter 8 Lists and Tuples 295
8.1 Sequences 295
8.2 Introduction to Lists 295
8.3 List Slicing 303
8.4 Finding Items in Lists with the in Operator 306
8.5 List Methods and Useful Built-in Functions 307
8.6 Copying Lists 314
8.7 Processing Lists 316
8.8 Two-Dimensional Lists 328
8.9 Tuples 332
Chapter 9 More About Strings 341
9.1 Basic String Operations 341
9.2 String Slicing 349
9.3 Testing, Searching, and Manipulating Strings 353
Chapter 10 Dictionaries and Sets 371
10.1 Dictionaries 371
10.2 Sets 394
10.3 Serializing Objects 406
Chapter 11 Classes and Object-Oriented Programming 421
11.1 Procedural and Object-Oriented Programming 421
11.2 Classes 425
11.3 Working with Instances 442
11.4 Techniques for Designing Classes 464
Chapter 12 Inheritance 483
12.1 Introduction to Inheritance 483
12.2 Polymorphism 498
Chapter 13 Recursion 509
13.1 Introduction to Recursion 509
13.2 Problem Solving with Recursion 512
13.3 Examples of Recursive Algorithms 516
Chapter 14 GUI Programming 529
14.1 Graphical User Interfaces 529
14.2 Using the tkinter Module 531
14.3 Display Text with Label Widgets 534
14.4 Organizing Widgets with Frames 537
14.5 Button Widgets and Info Dialog Boxes 540
14.6 Getting Input with the Entry Widget 543
14.7 Using Labels as Output Fields 546
14.8 Radio Buttons and Check Buttons 554
Appendix A Installing Python 567
Appendix B Introduction to IDLE 569
Appendix C The ASCII Character Set 577
Appendix D Answers to Checkpoints 579
Index 595


微信扫一扫关注公众号

0 个评论

要评论图书请先登录注册

你也许想看:

C语言解惑

《C语言解惑》

Alan R.Feuer.人民邮电出版社.2007

“本书脱胎于作者在C语言的摇篮——贝尔实验室教授C语言的讲稿,几乎涵盖了C语言各个方面的难点,并包含了一些其他书籍很少分析...”

Effective Python

《Effective Python》

Brett Slatkin.Addison-Wesley Professional.2015-3-8

“”

Learning Android

《Learning Android》

Marko Gargenta.O'Reilly Media.2011-3-28

“If you're new to the Android mobile operating system, Learni...”

Python编程快速上手 让繁琐工作自动化

《Python编程快速上手 让繁琐工作自动化》

[美] Al Sweigart 斯维加特.人民邮电出版社.2016-6-1

“”

PaaS实现与运维管理

《PaaS实现与运维管理》

余何.电子工业出版社.2016-2-1

“《PaaS实现与运维管理:基于Mesos +Docker+ELK的实战指南》主要阐述了云计算中PaaS平台的实现与运维管...”

CUDA by Example

《CUDA by Example》

Jason Sanders,Edward Kandrot.Addison-Wesley Professional.2010-7-29

“"This book is required reading for anyone working with accel...”

Python 3 Object Oriented Programming

《Python 3 Object Oriented Programming》

Dusty Phillips.Packt.2010

“Object Oriented Programming is a very important aspect of mo...”

Win32多线程程序设计

《Win32多线程程序设计》

[美] Jim Beveridge,Robert Wiener.华中科技大学出版社.2002-1

“《Win32多线程程序设计》全书共分三篇。第一篇包括线程的启动和结束、核心对象、激发和未激发状态的意义、同步机制及其用途...”

学习bash

《学习bash》

Cameron Newham,Bill Rosenblatt.机械工业出版社.2003-1-1

“bash是自由软件基金会发布的“Bourne Again Shell”的缩写。它是流行的UNIX Bourne shel...”

Python Pocket Reference

《Python Pocket Reference》

Mark Lutz.O'Reilly Media.2009-10-15

“This fourth edition of "Python Pocket Reference" has been th...”

写给大忙人看的Java SE 8

《写给大忙人看的Java SE 8》

【美】Cay S. Horstmann(凯.S.霍斯曼) 编.电子工业出版社.2014-11

“《写给大忙人看的Java SE 8》向Java开发人员言简意赅地介绍了Java 8 的许多新特性(以及Java 7 中许...”

C++ Primer习题集(第5版)

《C++ Primer习题集(第5版)》

【美】Stanley B. Lippman( 斯坦利 李普曼),【美】Barbara E. Moo (芭芭拉 默) 著,【美】Josee Lajoie(约瑟 拉乔伊 ).电子工业出版社.2015-3-1

“C++ Primer(Fifth Edition)由三位C++大师Stanley B. Lippman、Josée La...”

Java JDK6学习笔记

《Java JDK6学习笔记》

林信良.清华大学出版社.2007-4

“《Java JDK6学习笔记》是作者良葛格本人近几年来学习Java的心得笔记,结构按照作者的学习脉络依次展开,从什么是J...”

DTrace

《DTrace》

Brendan Gregg,Jim Mauro.Prentice Hall.2011-4-11

“The Oracle Solaris DTrace feature revolutionizes the way you...”

Java TCP/IP Socket编程

《Java TCP/IP Socket编程》

Kenneth L. Calvert,Michael J. Donahoo.机械工业出版社.2009-1

“《Java TCP/IP Socket编程(原书第2版)》基于TCP/IP Socket相关原理,对如何在Java中进行...”

时间触发嵌入式系统设计模式

《时间触发嵌入式系统设计模式》

Michael J.Pont.中国电力出版社.2004-7-1

“”

SharePoint 2013 开发入门经典

《SharePoint 2013 开发入门经典》

Steve Fox,Chris Johnson,Donovan Follette.清华大学出版社.2014-9-1

“作为功能丰富的开发平台,SharePoint 2013相对以往版本有更进一步的增强。对于初学者,本书是开始体验Share...”

Debugging with GDB

《Debugging with GDB》

Richard M. Stallman,Roland H. Pesch,Stan Shebs.Free Software Foundation.2002-01

“The GNU Debugger allows you to see what is going on "inside"...”

Foundations of Programming Languages

《Foundations of Programming Languages》

Kent D. Lee.Springer.2015-1-20

“”

C程序设计语言

《C程序设计语言》

Clovis L.Tondo,SCOTT E.GIMPEL.机械工业出版社.2004-1-1

“本书对Brain W. Kernighan和Dennis M. Ritchie所著的《The C Programming...”