《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 个评论

要评论图书请先登录注册

你也许想看:

Effective Ruby:改善Ruby程序的48条建议

《Effective Ruby:改善Ruby程序的48条建议》

Peter J. Jones.机械工业出版社.2016-1

“如果你是经验丰富的Rub程序员,本书能帮助你发挥Ruby的全部力量来编写更稳健、高效、可维护和易执行的代码。Peter ...”

Practical Java中文版

《Practical Java中文版》

(美)Peter Haggar.中国电力出版社.2003-1

“本书出自第一线JAVA编程专家之手,为读者展现正确、高效、强固之JAVA代码实践方案。 这本取材广泛的掼,以不同层级的专...”

跟老齐学Python

《跟老齐学Python》

齐伟 编著.电子工业出版社.2016-2

“《跟老齐学Python:从入门到精通》是面向编程零基础读者的Python入门教程,内容涵盖了Python的基础知识和初步...”

OS X and iOS Kernel Programming

《OS X and iOS Kernel Programming》

Ole Henry Halvorsen,Douglas Clarke.Apress.2011-12-16

“OS X and iOS Kernel Programming combines essential operating...”

iOS 9 by Tutorials

《iOS 9 by Tutorials》

Aaron Douglas, Caroline Begbie, Chris Wagner, Derek Selander, Evan Dekhayser, James Frost, Jawwad Ahmad, Pietro Rea, Soheil Azarpour, Vincent Ngo.Razeware LLC.2015-10-7

“Learn the New iOS 9 APIs! iOS 9 introduces a ton of great ne...”

爱上Python

《爱上Python》

[新加坡] Jamie Chan.人民邮电出版社.2016-6

“本书将复杂的编程概念分解成简单的步骤,简单易懂。作者通过多年的教学经验精心挑选出了有特点的例子,手把手地实例教学。这本书...”

Modern Perl

《Modern Perl》

chromatic.Onyx Neon Press.2011-12

“The Best Perl Programmers Use Modern Perl In 1987, Perl 1.0 ...”

Unity 3D Game Development by Example Beginner's Guide

《Unity 3D Game Development by Example Beginner's Guide》

Ryan Henson Creighton.Packt Publishing.2010-09-24

“”

Unity 3.x Game Development Essentials

《Unity 3.x Game Development Essentials》

Will Goldstone.Packt Publishing.2011-12-20

“”

Scheme and the Art of Programming

《Scheme and the Art of Programming》

George Springer,Daniel P. Friedman.Mit Pr.1989-10

“”

Building Web Apps for Google TV

《Building Web Apps for Google TV》

Ferrate, Andres; Surya, Amanda; Lee, Daniels..2011-7

“By integrating the Web with traditional TV, Google TV offers...”

软件驱魔

《软件驱魔》

布伦登 (Bill Blunden).机械工业出版社.2014-5-1

“在典型的软件项目生命周期中,维护阶段的成本占总成本的60%以上。修复遗留代码中的bug一直是困扰软件从业人员的一个问题。...”

Python金融大数据分析

《Python金融大数据分析》

[德] 伊夫·希尔皮斯科.人民邮电出版社.2015-12

“唯一一本详细讲解使用Python分析处理金融大数据的专业图书;金融应用开发领域从业人员必读。 Python凭借其简单、易...”

Unity Shaders and Effects Cookbook

《Unity Shaders and Effects Cookbook》

Lammers, Kenneth.Packt Publishing.

“”

Eloquent Ruby

《Eloquent Ruby》

Russ Olsen.Addison-Wesley.2011-2

“It's easy to write correct Ruby code, but to gain the fluenc...”

Learning Apache Kafka, Second Edition

《Learning Apache Kafka, Second Edition》

Nishant Garg.Packt Publishing - ebooks Account.2015-2-16

“”

Advanced Swift

《Advanced Swift》

Chris Eidhof,Airspeed Velocity.CreateSpace Independent Publishing Platform.2016-3-18

“Advanced Swift takes you through Swift’s features, from low-...”

Introducing iOS 8

《Introducing iOS 8》

Steve Derico.O'Reilly Media.2014-9

“With Early Release ebooks, you get books in their earliest f...”

Erlang/OTP并发编程实战

《Erlang/OTP并发编程实战》

[美] Martin Logan,[美] Eric Merritt,[瑞典] Richard Carlsson.人民邮电出版社.2012-7-12

“内容简介: 通过提高CPU时钟频率来制造更快的单核芯片的技术已经到达了极限。多核、并发、分布式等概念和技术也随之走出象牙...”

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中进行...”