內容簡介
《Python入門(影印版 英文版)》容易理解而且讀起來幽默風趣,對於編程初學者和Python語言新手而言是理想的書籍。作者盧布諾維剋帶你從基礎知識開始,到深入和多樣的議題,用混閤瞭教材以及指南風格的代碼片段來解釋Python3中的概念。
《Python入門(影印版 英文版)》章節末尾還有練習題幫助你練習剛剛學過的內容。
你將為這門語言打下堅實的基礎,包括測試、調試、代碼復用和其他開發技巧的實踐。
《Python入門(影印版 英文版)》將嚮你展示如何通過各種工具和開源代碼包,將Python應用於商業、科學和藝術等領域中。
目錄
Preface
1. ATaste of Py
Python in the Real World
Python versus Language X
So, Why Python?
When Not to Use Python
Python 2 versus Python 3
Installing Python
Running Python
Using the Interactive Interpreter
Use Python Files
What's Next?
Your Moment of Zen
Things to Do
2. Py Ingredients: Numbers, Strings, and Variables
Variables, Names, and Objects
Numbers
Integers
Precedence
Bases
Type Conversions
How Big Is an int?
Floats
Math Functions
Strings
Create with Quotes
Convert Data Types by Using str()
Escape with
Combine with +
Duplicate with *
Extract a Character with []
Slice with [ start : end : step ]
Get Length with len0
Split with split()
Combine with join()
Playing with Strings
Case and Alignment
Substitute with replace()
More String Things
Things to Do
3. Py Filling: Lists, Tuples, Dictionaries, and Sets
Lists and Tuples
Lists
Create with [] or list()
Convert Other Data Types to Lists with list()
Get an Item by Using [ offset ]
Lists of Lists
Change an Item by [ offset ]
Get a Slice to Extract Items by Offset Range
Add an Item to the End with append()
Combine Lists by Using extend() or +=
Add an Item by Offset with insert()
Delete an Item by Offset with del
Delete an Item by Value with remove()
Get an Item by Offset and Delete It by Using pop()
Find an Item's Offset by Value with index()
Test for a Value with in
Count Occurrences of a Value by Using count()
Convert to a String with join()
Reorder Items with sort()
Get Length by Using len()
Assign with =, Copy with copy()
Tuples
Create a Tuple by Using 0
Tuples versus Lists
Dictionaries
Create with {}
Convert by Using dict()
4. Py Crust: Code Structures
5. Py Boxes: Modules, Packages, and Programs
6. Oh Oh: Objects and Classes
7. Mangle Data Like a Pro
8. Data Has to Go Somewhere
9. The Web, Untangled
10. Systems
11. Concurrency and Networks
12. Be a Pythonista
A. PyArt
B. Pyat Work
C. PySci
D. Install Python 3
E. Answers to Exercises
F. Cheat Sheets
Index
精彩書摘
《Python入門(影印版 英文版)》:
That initial blank output line is the empty string'', which stands for the current directory.If '' is First in sys .path, Python looks in the current directory first when you try to import something: import report looks for report.py.
The first match willbe used.This means that ifyou define a module named random and it's in the search path before the standard library, you won't be able to access the standard library's random now.
Packages
We went from single lines of code, to multiline functions, to standalone programs, to multiple modulesin the same directory To allow Python applications to scale even more, you can organize modules into file hierarchies called packages.
Maybe we want different types of text forecasts: one for the next day and one for the next week.One way to structure this is to make a directory named sources, and create two modules within it: daily.py and weekly.py.Each has a function called forecast.The daily version returns a string, and the weekly version returns a list of seven strings.Here's the main program and the two modules.(The enuvierate() function takes apart alist and feeds each item of the list to the for loop, adding a number to each item as a liffle bonus.).
……
前言/序言
Python入門(影印版 英文版) [Introducing Python] 下載 mobi epub pdf txt 電子書 格式
Python入門(影印版 英文版) [Introducing Python] 下載 mobi pdf epub txt 電子書 格式 2024
評分
☆☆☆☆☆
我為什麼喜歡在京東買東西,因為今天買明天就可以送到。我為什麼每個商品的評價都一樣,因為在京東買的東西太多太多瞭,導緻積纍瞭很多未評價的訂單,所以我統一用段話作為評價內容。京東購物這麼久,有買到很好的産品
評分
☆☆☆☆☆
他們每個人從齣身到性格都有迥異之外,但他們身上卻都有著一種共同的東西—對自己的祖國意大利的深深的愛,對親友的真摯之情。這裏麵不能忽視的是每個月老師讀給那群少年聽的“精神講話”
評分
☆☆☆☆☆
知道你們過購物節忙,快遞小哥也辛苦,一般都不忍心不給5分。但是書的包裝和運輸能不能用點心?迴來好幾本書角摺瞭,摺一下不要緊,可一本書能有一半紙的每一頁都有摺的痕跡,看著真膈應!
評分
☆☆☆☆☆
這樣一本好書,怎麼連還印刷的這麼差勁!!
評分
☆☆☆☆☆
代同事購買的,經常在京東買書瞭,快遞還是給力的,就是有一個建議:能不能庫存夠一點,不要用拆單瞭,有些書在自營找不到還要用第三方,比起京東自己得配送,真的物流太慢瞭,有的還不能開發票,希望可以解決。
評分
☆☆☆☆☆
英文原版,進階必讀。快遞很快
評分
☆☆☆☆☆
進一步提高python的好書,讀起來就放不下瞭。好書。
評分
☆☆☆☆☆
很不錯的一本書,字體清晰
評分
☆☆☆☆☆
買瞭很多書,還沒看,大緻翻瞭翻,這本書應該是不錯的,有機會看看