Python程式設計教程(2023年9月1日清華大學出版社出版的圖書)

Python程式設計教程(2023年9月1日清華大學出版社出版的圖書)

本詞條是多義詞,共15個義項
更多義項 ▼ 收起列表 ▲

《Python程式設計教程》是2023年9月1日清華大學出版社出版的圖書,作者:徐紅雲、曹曉葉、袁華、王亮明。

基本介紹

  • 中文名:Python程式設計教程
  • 作者:徐紅雲、曹曉葉、袁華、王亮明
  • 出版時間:2023年9月1日
  • 出版社:清華大學出版社
  • ISBN:9787302640196
  • 定價:59 元
  • 印次:1-1
  • 印刷日期:2023.08.28
內容簡介,圖書目錄,

內容簡介

《Python程式設計教程》全面介紹 Python 程式設計的基礎語法和常用第三方庫及套用。全書共 11 章,主要內容包括: 程式設計語言及 Python 的相關概念,基本語法,程式控制結構,函式,組合數據類型,面向對象程式設計, 檔案操作,基於第三方庫的 GUI 編程,科學計算、數據分析與可視化,多媒體編程,網路爬蟲。書後附 錄分別描述了 Python 3 編碼風格參考規範、ASCII 碼和 Unicode 碼。書中列舉了大量套用實例,每章後 均附有習題。 本書適合作為高等院校非計算機專業 Python 程式設計課程的教材,也可作為培訓機構或 Python 自學 者的參考書,還可作為從事 Python 套用開發人員的參考資料。

圖書目錄

目錄
第1章 概述................................................................................1
1.1 程式設計語言 ..................................................................................................1
1.2 程式設計方法 ..................................................................................................5
1.3 程式的運行過程 ............................................................................................10
1.4 Python安裝與開發環境 ...............................................................................12
1.5 Python庫 .......................................................................................................18
1.6 程式打包 ........................................................................................................22
1.7 套用舉例 ........................................................................................................23
1.8 本章小結 ........................................................................................................26
習題 .........................................................................................................................27
第2章 基本語法........................................................................28
2.1 常量、變數、關鍵字 ....................................................................................28
2.2 輸入輸出 ........................................................................................................29
2.3 注釋 ................................................................................................................31
2.4 數據類型 ........................................................................................................32
2.5 套用舉例 ........................................................................................................47
2.6 Python之禪 ...................................................................................................52
2.7 本章小結 ........................................................................................................52
習題 .........................................................................................................................53
第3章 程式控制結構.................................................................54
3.1 選擇結構 ........................................................................................................54
3.2 循環結構 ........................................................................................................62
3.3 異常處理 ........................................................................................................75
3.4 套用舉例 ........................................................................................................82
3.5 本章小節 ........................................................................................................92
習題 .........................................................................................................................92
第4章 函式.............................................................................93
4.1 函式定義與調用 ............................................................................................93
4.2 函式的參數傳遞 ............................................................................................96
4.3 函式變數的作用範圍 ....................................................................................99
4.4 匿名函式 ......................................................................................................103
4.5 遞歸函式 ......................................................................................................106
4.6 內置函式及使用 ..........................................................................................108
4.7 函式的文檔 ..................................................................................................110
4.8 套用舉例 ......................................................................................................111
4.9 本章小結 ......................................................................................................122
習題 .......................................................................................................................122
第5章 組合數據類型................................................................125
5.1 集合 ..............................................................................................................125
5.2 序列類型及通用操作 ..................................................................................130
5.3 元組 ..............................................................................................................132
5.4 列表 ..............................................................................................................134
5.5 字典 ..............................................................................................................140
5.6 套用舉例 ......................................................................................................146
5.7 本章小結 ......................................................................................................157
習題 .......................................................................................................................158
第6章 面向對象程式設計...........................................................160
6.1 類與對象 ......................................................................................................160
6.2 屬性與方法 ..................................................................................................164
目 錄
V
6.3 套用舉例 ......................................................................................................173
6.4 本章小結 ......................................................................................................175
習題 .......................................................................................................................175
第7章 檔案操作.......................................................................177
7.1 檔案的基本概念 ..........................................................................................177
7.2 檔案的打開與關閉 ......................................................................................178
7.3 檔案的讀寫 ..................................................................................................180
7.4 主要數據檔案格式 ......................................................................................185
7.5 套用舉例 ......................................................................................................188
7.6 本章小結 ......................................................................................................191
習題 .......................................................................................................................191
第8章 GUI編程......................................................................193
8.1 Python GUI常見庫 .....................................................................................193
8.2 Tkinter基礎 .................................................................................................194
8.3 常用控制項 ......................................................................................................198
8.4 事件處理 ......................................................................................................205
8.5 布局方法 ......................................................................................................208
8.6 對話框 ..........................................................................................................211
8.7 套用舉例 ......................................................................................................213
8.8 本章小結 ......................................................................................................216
習題 .......................................................................................................................216
第9章 科學計算、數據分析與可視化..............................................217
9.1 NumPy .........................................................................................................217
9.2 Pandas ..........................................................................................................222
9.3 Matplotlib .....................................................................................................230
9.4 套用舉例 ......................................................................................................237
9.5 本章小結 ......................................................................................................240
習題 .......................................................................................................................240
第10章 多媒體編程..................................................................242
10.1 PIL和Pillow .............................................................................................242
10.2 圖像及Image類 ........................................................................................242
10.3 圖像處理 ....................................................................................................243
10.4 OpenCV.....................................................................................................246
10.5 Librosa .......................................................................................................249
10.6 套用舉例 ....................................................................................................252
10.7 本章小結 ....................................................................................................254
習題 .......................................................................................................................254
第11章 網路爬蟲.....................................................................255
11.1 基本概念 ....................................................................................................255
11.2 requests庫 .................................................................................................256
11.3 BeautifulSoup4 ..........................................................................................259
11.4 套用舉例 ....................................................................................................263
11.5 本章小結 ....................................................................................................265
習題 .......................................................................................................................265
參考文獻.................................................................................267
附錄A Python3編碼風格參考規範.............................................268
A.1 代碼布局.....................................................................................................268
A.2 命名規則.....................................................................................................270
附錄B ASCII碼.....................................................................271
附錄C Unicode碼.................................................................274
C.1 Unicode編碼方式 ......................................................................................274
C.2 Unicode實現方式 ......................................................................................275

相關詞條

熱門詞條

聯絡我們