編程思維訓(xùn)練指導(dǎo)書:從Python程序設(shè)計(jì)開始
定 價(jià):49 元
- 作者:丁艷輝 等
- 出版時(shí)間:2021/4/1
- ISBN:9787121411021
- 出 版 社:電子工業(yè)出版社
- 中圖法分類:TP311.561
- 頁碼:218
- 紙張:
- 版次:01
- 開本:16開
本書簡介: 本書定位于編程思維訓(xùn)練,依托 Python 程序設(shè)計(jì)語言,通過豐富的實(shí)例,輔助讀者實(shí)現(xiàn)編程領(lǐng)域“從 0 到 1”的突破;本書同時(shí)配有在線編程實(shí)踐平臺(tái),自動(dòng)評測,輔助讀者進(jìn)行個(gè)性化學(xué)習(xí)。本書獲教育部產(chǎn)學(xué)合作協(xié)同育人項(xiàng)目及山東省自然科學(xué)基金重大基礎(chǔ)研究項(xiàng)目資助。本書邏輯清晰,內(nèi)容簡潔,不僅適合計(jì)算機(jī)相關(guān)專業(yè)的低年級同學(xué)作為教材使用,也適合其他專業(yè)的學(xué)生或讀者作為編程入門教材使用。
丁艷輝,漢族,1981年1月出生,山東棗莊人,中共黨員,2010年6月畢業(yè)于山東大學(xué)計(jì)算機(jī)軟件與理論專業(yè),獲工學(xué)博士學(xué)位,F(xiàn)為山東師范大學(xué)信息科學(xué)與工程學(xué)院教授、碩士生導(dǎo)師,中國計(jì)算機(jī)協(xié)會(huì)信息系統(tǒng)專業(yè)委員會(huì)委員。2015年1月至2015年12月,在香港科技大學(xué)做訪問學(xué)者;2016年3月至2017年4月,在美國賓夕法尼亞大學(xué)做訪問學(xué)者。 主要研究領(lǐng)域包括Web數(shù)據(jù)集成、基于機(jī)器學(xué)習(xí)的醫(yī)學(xué)圖像分析等;主持國家自然科學(xué)基金青年項(xiàng)目1項(xiàng)、省部級項(xiàng)目2項(xiàng);在《計(jì)算機(jī)學(xué)報(bào)》、Journal of Computer Science and Technology等期刊和國內(nèi)外學(xué)術(shù)會(huì)議上發(fā)表論文10余篇;獲山東省科技進(jìn)步二等獎(jiǎng)(第4位)1項(xiàng)。
第 1 章 Python 簡介 ··············································································.1
1.1 編程思維 ··················································································.1
1.2 Python 發(fā)展歷史 ········································································.2
1.2.1 Python 簡介 ·····································································.2
1.2.2 Python 的特點(diǎn) ··································································.3
1.3 課程輔助平臺(tái)介紹 ······································································.4
第 2 章 編寫第一個(gè)程序 ·········································································.5
2.1 入門實(shí)例——Hello World! ····························································.5
2.1.1 安裝 Python 3.x 版本 ·························································.5
2.1.2 交互模式 ·········································································.6
2.1.3 腳本模式 ·········································································.7
2.2 相關(guān)知識(shí)點(diǎn) ···············································································10
2.3 整章知識(shí)點(diǎn) ···············································································12
2.4 進(jìn)階實(shí)例 ··················································································18
2.5 小結(jié) ························································································18
第 3 章 基本數(shù)據(jù)類型 ············································································19
3.1 入門實(shí)例——年齡計(jì)算器 ·····························································19
3.2 相關(guān)知識(shí)點(diǎn) ···············································································20
3.3 基本數(shù)據(jù)類型知識(shí)點(diǎn) ···································································21
3.4 進(jìn)階實(shí)例 ··················································································37
3.5 小結(jié) ························································································38
第 4 章 選擇結(jié)構(gòu) ··················································································39
4.1 入門實(shí)例——數(shù)字比大小游戲 ·······················································39
4.2 相關(guān)知識(shí)點(diǎn) ···············································································40
4.3 選擇結(jié)構(gòu)知識(shí)點(diǎn) ·········································································42
4.4 進(jìn)階實(shí)例 ··················································································49
4.5 小結(jié) ························································································52
第 5 章 循環(huán)結(jié)構(gòu) ··················································································53
5.1 入門實(shí)例——“石頭 - 剪刀 - 布”游戲升級版 ···································53
5.2 相關(guān)知識(shí)點(diǎn) ···············································································55
5.3 循環(huán)結(jié)構(gòu)知識(shí)點(diǎn) ·········································································56
5.4 進(jìn)階實(shí)例 ··················································································68
5.5 小結(jié) ························································································72
第 6 章 函數(shù) ························································································73
6.1 入門實(shí)例——計(jì)算任意整數(shù)的階乘 ·················································73
6.2 相關(guān)知識(shí)點(diǎn) ···············································································75
6.3 函數(shù)知識(shí)點(diǎn) ···············································································77
6.4 進(jìn)階實(shí)例 ··················································································93
6.5 小結(jié) ·····················································································.100
第 7 章 海龜繪圖 ···············································································.101
7.1 入門實(shí)例——第一只海龜 ··························································.101
7.2 相關(guān)知識(shí)點(diǎn) ············································································.102
7.3 海龜繪圖知識(shí)點(diǎn) ······································································.103
7.4 進(jìn)階實(shí)例 ···············································································.111
7.5 小結(jié) ·····················································································.115
第 8 章 列表 ·····················································································.116
8.1 入門實(shí)例——彩虹的顏色 ··························································.116
8.2 相關(guān)知識(shí)點(diǎn) ············································································.117
8.3 列表知識(shí)點(diǎn) ············································································.118
8.4 進(jìn)階實(shí)例 ···············································································.124
8.5 小結(jié) ·····················································································.125
第 9 章 元組 ·····················································································.126
9.1 入門實(shí)例——學(xué)生信息 ·····························································.126
9.2 相關(guān)知識(shí)點(diǎn) ············································································.126
9.3 元組知識(shí)點(diǎn) ············································································.127
9.4 進(jìn)階實(shí)例 ···············································································.131
9.5 小結(jié) ·····················································································.131
第 10 章 字典 ····················································································.132
10.1 入門實(shí)例——電話號碼簿 ························································.132
10.2 相關(guān)知識(shí)點(diǎn) ··········································································.133
10.3 字典知識(shí)點(diǎn) ··········································································.133
10.4 進(jìn)階實(shí)例 ·············································································.137
10.5 小結(jié) ···················································································.142
第 11 章 模塊 ····················································································.143
11.1 入門實(shí)例——計(jì)算機(jī)隨機(jī)選擇“石頭”“剪刀”“布” ·······················.143
11.2 相關(guān)知識(shí)點(diǎn) ··········································································.144
11.3 模塊知識(shí)點(diǎn) ··········································································.144
11.4 進(jìn)階實(shí)例 ·············································································.152
11.5 小結(jié) ···················································································.153
第 12 章 文件操作 ··············································································.154
12.1 入門實(shí)例——讀取文字迷宮 ·····················································.154
12.2 相關(guān)知識(shí)點(diǎn) ··········································································.156
12.3 文件操作知識(shí)點(diǎn) ····································································.157
12.4 進(jìn)階實(shí)例 ·············································································.166
12.5 小結(jié) ···················································································.166
第 13 章 類和對象 ··············································································.167
13.1 入門實(shí)例——汽車類 ······························································.167
13.2 相關(guān)知識(shí)點(diǎn) ··········································································.168
13.3 類和對象知識(shí)點(diǎn) ····································································.171
13.4 進(jìn)階實(shí)例 ·············································································.176
13.5 小結(jié) ···················································································.179
第 14 章 Python 操作數(shù)據(jù)庫 ·································································.180
14.1 入門實(shí)例——?jiǎng)?chuàng)建一張關(guān)系表 ··················································.180
14.2 相關(guān)知識(shí)點(diǎn) ··········································································.181
14.3 Python 操作數(shù)據(jù)庫知識(shí)點(diǎn) ························································.182
14.4 進(jìn)階實(shí)例 ·············································································.189
14.5 小結(jié) ···················································································.197
第 15 章 GUI 編程 ··············································································.198
15.1 入門實(shí)例——第一個(gè)窗口程序 ··················································.198
15.2 相關(guān)知識(shí)點(diǎn) ··········································································.199
15.3 GUI 編程知識(shí)點(diǎn) ····································································.200
15.4 進(jìn)階實(shí)例 ·············································································.207
15.5 小結(jié) ···················································································.209