《Introducing Python》

《Introducing Python》 《Introducing Python》

  • 书名:《Introducing Python》:Modern Computing in Simple Packages
  • 分类:计算机
  • 作者:Bill Lubanovic
  • 出版社:OReilly
  • 出版年:2014-11-7
  • 售价:USD 39.99
  • 装订:平装
  • 页码:476

《Introducing Python》 内容介绍:

This book will introduce you to the Python programming language. It’s aimed at beginning programmers, but even if you’ve written programs before and just want to add Python to your list of languages, Introducing Python will get you started. It’s an unhurried introduction, taking small steps from the basics to more involved and varied topics. I mix cookbook and tutorial styles to explain new terms and ideas, but not too many at once. Real Python code is included early and often. Even though this is an introduction, I include some topics that might seem advanced, such as NoSQL databases and message-passing libraries. I chose these because they can solve some problems better than standard solutions. You’ll download and install external Python packages, which is good to know when the “batteries included” with Python don’t fit your application. And it’s fun to try something new. I also include some examples of what not to do, especially if you’ve programmed in other languages and try to adapt those styles to Python. And I won’t pretend that Python is perfect; I’ll show you what to avoid.

作者Bill Lubanovic介绍:

Bill Lubanovic has developed software with Unix since 1977, GUIs since 1981, databases since 1990, and the Web since 1993. In 1982, at a startup named Intran, he developed MetaForm, one of the first commercial GUIs (before the Mac or Windows), on one of the first graphic workstations. In the early 1990s, while at Northwest Airlines, he wrote a graphic yield management system that generated millions of dollars in revenue; established a presence for the company on the Internet; and wrote its first Internet marketing test. Later, he cofounded an ISP (Tela) in 1994, and a web development company (Mad Scheme) in 1999. Recently, he developed core services and distributed systems with a remote team for a Manhattan startup. Currently, he’s integrating OpenStack services for a supercomputer company. Bill enjoys life in Minnesota with his wonderful wife Mary, children Tom and Karin, and cats Inga, Chester, and Lucy.

《Introducing Python》 目录大纲:

1. A Taste of Py. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Python in the Real World 5
Python versus Language X 6
So, Why Python? 9
When Not to Use Python 9
Python 2 versus Python 3 10
Installing Python 10
Running Python 11
Using the Interactive Interpreter 11
Use Python Files 12
What’s Next? 13
Your Moment of Zen 13
Things to Do 14
2. Py Ingredients: Numbers, Strings, and Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Variables, Names, and Objects 15
Numbers 19
Integers 19
Precedence 23
Bases 24
Type Conversions 25
How Big Is an int? 26
Floats 27
Math Functions 27
Strings 27
Create with Quotes 28
Convert Data Types by Using str() 30
Escape with \ 30
Combine with + 31
Duplicate with * 32
Extract a Character with [] 32
Slice with [ start : end : step ] 33
Get Length with len() 35
Split with split() 35
Combine with join() 36
Playing with Strings 36
Case and Alignment 37
Substitute with replace() 38
More String Things 39
Things to Do 39
3. Py Filling: Lists, Tuples, Dictionaries, and Sets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Lists and Tuples 41
Lists 42
Create with [] or list() 42
Convert Other Data Types to Lists with list() 43
Get an Item by Using [ offset ] 43
Lists of Lists 44
Change an Item by [ offset ] 45
Get a Slice to Extract Items by Offset Range 45
Add an Item to the End with append() 46
Combine Lists by Using extend() or += 46
Add an Item by Offset with insert() 46
Delete an Item by Offset with del 47
Delete an Item by Value with remove() 47
Get an Item by Offset and Delete It by Using pop() 47
Find an Item’s Offset by Value with index() 48
Test for a Value with in 48
Count Occurrences of a Value by Using count() 49
Convert to a String with join() 49
Reorder Items with sort() 49
Get Length by Using len() 50
Assign with =, Copy with copy() 50
Tuples 52
Create a Tuple by Using () 52
Tuples versus Lists 53
Dictionaries 53
Create with {} 54
Convert by Using dict() 5


微信扫一扫关注公众号

0 个评论

要评论图书请先登录注册

你也许想看:

Functional Reactive Programming

《Functional Reactive Programming》

Stephen Blackheath,Anthony Jones.Manning Publications.2016-2-28

“”

The Human Face of Big Data

《The Human Face of Big Data》

Rick Smolan,Jennifer Erwitt.Against All Odds Productions.2012-11-20

“The images and stories captured in The Human Face of Big Dat...”

Design by Contract原则与实践

《Design by Contract原则与实践》

米切尔(Mitchell Richard).人民邮电出版社.2003-10

“《Design by Contract原则与实践》是国内第一本系统阐述“契约式设计”思想和方法的译作,深刻理解和充分发挥...”

深度探索嵌入式操作系统

《深度探索嵌入式操作系统》

彭东.机械工业出版社.2015-10

“相信很多同行和笔者以前一样,阅读过很多操作系统理论方面的书籍,感觉它们所讲述的理论大同小异且比较容易理解,但是真要我们自...”

Lightweight Django

《Lightweight Django》

Julia Elman,Mark Lavin.O'Reilly Media.2014-11-13

“”

OCaml from the Very Beginning

《OCaml from the Very Beginning》

John Whitington.Coherent Press.2013-6-7

“”

苹果生存手册

《苹果生存手册》

游雷.清华大学出版社.2009-8

“《苹果生存手册:Mac电脑达人速成》是一本全面介绍苹果电脑应用的书籍,不仅涵盖面广,内容也达到了足够的深度。《苹果生存手...”

Sencha Touch权威指南

《Sencha Touch权威指南》

陆凌牛.机械工业出版社.2012-9

“如何才能全面而透彻地理解和掌握移动应用开发框架Sencha Touch并开发出令人心动的移动应用?本书将给我们满意的答案...”

Apache ZooKeeper Essentials

《Apache ZooKeeper Essentials》

Saurav Haloi.Packt Publishing - ebooks Account.2015-1-28

“”

树莓派用户指南

《树莓派用户指南》

阿普顿 (Eben Upton),哈菲克 (Gareth Halfacree).人民邮电出版社.2016-2-1

“”

自己动手设计物联网

《自己动手设计物联网》

黄峰达.电子工业出版社.2016-7

“物联网是一个跨领域的学科,涉及方方面面的知识,包括硬件、软件、网络、协议等,这些知识很难在一本书里详细展开。目前很多关于...”

自己设计制作CPU与单片机

《自己设计制作CPU与单片机》

姜咏江.人民邮电出版社.2014-9

“理论与实战密切结合没有不能逾越的鸿沟。 深刻简洁的计算机理论和方法能让你攀登最高峰。 不亲自设计CPU的人很难以理解计算...”

程序化交易:策略开发与应用

《程序化交易:策略开发与应用》

深圳开拓者科技有限公司.中国经济出版社.2015-3

“全书分为上、下两篇。上篇以交易开拓者(TB)软件为例,从软件的操作使用和交易系统构建两个方面进行深入细致的解析,介绍了:...”

FreeBSD操作系统设计与实现(第2版) 英文版

《FreeBSD操作系统设计与实现(第2版) 英文版》

[美]Marshall Kirk McKusick,[美]George V.Neville-Neil,[美]Robert N.M.Watson.人民邮电出版社.2016-3-1

“本书是FreeBSD内核完整的技术指南,在上一版的基础上进行了全面更新,以涵盖版本FreeBSD 5和版本11之间的所有...”

Build Your Own Lisp

《Build Your Own Lisp》

Mr Daniel Holden.CreateSpace Independent Publishing Platform.2014-10-22

“If you’ve ever wondered how to build your own programming la...”

IntelliJ IDEA Essentials

《IntelliJ IDEA Essentials》

Jaroslaw Krochmalski.Packt Publishing - ebooks Account.2014-12-26

“”

统计软件教程

《统计软件教程》

李东风.人民邮电出版社.2006-11

“本书是统计软件的入门教程,分成两部分,分别讲述SAS系统和S语言。主要内容包括:SAS系统的基础知识、SAS 语言与数据...”

Java 8 Pocket Guide

《Java 8 Pocket Guide》

Robert Liguori,Patricia Liguori.O'Reilly Media.2014-4-28

“”

干净的数据:数据清洗入门与实践

《干净的数据:数据清洗入门与实践》

[美] Megan Squire.人民邮电出版社.2016-5

“数据清洗是数据挖掘与分析过程中不可缺少的一个环节,但因为数据类型极其复杂,传统的清洗脏数据工作单调乏味且异常辛苦。如果能...”

C现代编程

《C现代编程》

[日] 花井志生.人民邮电出版社.2016-4

“本书主要讲解如何将集成开发环境、设计模式、极限编程、测试驱动开发、重构、持续集成这些现代编程方法应用到C语言的嵌入式开发...”