Skip to Content
深入淺出程式設計
book

深入淺出程式設計

by David Griffiths, Paul Barry
August 2011
Intermediate to advanced
444 pages
8h 55m
Chinese
GoTop Information, Inc.
Content preview from 深入淺出程式設計
目錄
xiii
誰贏得衝浪大賽 146
將名字與得分關聯在一起 150
使用雜湊將鍵與值關聯起來 153
使用 for 迴圈繞行雜湊資料 154
資料缺乏順序 158
當資料變複雜 160
從函式回傳資料結構 164
這是你的新浪板 168
同時間,在電視圈… 169
程式碼不變;改變的是函式 170
TVN 的資料正確無誤 174
編程工具箱 175
讓資料適得其所
5
雜湊與資料庫
當論及資料時,陣列不是唯一的主角。
程式語言通常隨附了其他資料處理的好工具,而我們所選用的 Python 也不例
外。在本章中,你會使用一般被稱為雜湊(hash)(熟悉 Python 的人會比較
習慣 dictionary 這個詞)的資料結構,將名稱與值關聯在一起。當論及儲存的
資料時,你會從外部的資料庫系統及一般文字檔讀取資料。這個世界的資料氾
濫,因此,請繼續閱讀下去,開始將你那與日俱增的編程技巧應用到一些酷炫
的資料處理任務上。
fm.indd 13 2011/8/6 上午 02:15:34
目錄
xiv
簡單又直接
你撰寫的程式碼會被運用到許多程式中。
雖然共享是好事,但必須很小心。某個程式人員可能以非預期的方式使用你的程式
碼,另一個程式人員可能會修改它,甚至沒讓你知道。你可能會想要在所有程式中
使用一個函式,隨著時間經過,此函式的程式碼可能會被改變,以便符合你的其他 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Kubernetes设计模式

Kubernetes设计模式

Bilgin Ibryam, Roland Huß
深入淺出代數

深入淺出代數

Tracey Pilone, Dan Pilone
Kafka权威指南(第2版)

Kafka权威指南(第2版)

Gwen Shapira, Todd Palino, Rajini Sivaram, Krit Petty

Publisher Resources

ISBN: 9789862762691