Python基礎教程,Python入門教程

Python 是一門上手簡單、功能強大、通用型的腳本編程語言。Python 類庫極其豐富,這使得 Python 幾乎無所不能,網站開發、軟件開發、大數據分析、網絡爬蟲、機器學習等都不在話下。

這套 Python 基礎教程不是教科書,不會玩弄概念,而是力求口語化、通俗化,讓大家儘快入門。

如果小朋友出於興趣學習本教程,可先引導他閱讀教程的前半部分,這是基礎;如果你想全面掌握 Python 編程,並能勝任實際企業開發項目,那你應該踏踏實實地學習本教程的所有章節。

優質資源推薦:Python官網廖雪峯的Python基礎教程Python極簡入門教程

第1章 Python編程基礎

1.編程語言是什麼

2.編譯型語言和解釋型語言

3.Python是什麼

4.Python具有哪些特點(優點和缺點)

5.學Python,不需要有編程基礎!

6.學Python能幹什麼

7.Python 2.x和Python 3.x,初學者應如何選擇?

8.Python 3和Python 2的區別

9.Python 2to3:自動將Python 2.x代碼轉換成Python3.x代碼

10.Windows安裝Python

11.Linux安裝Python

12.Mac安裝Python環境

13.python不是內部或外部命令的解決方法

第2章 Python初探

1.第一個Python程序

2.Python交互式解釋器

3.IDE(集成開發環境)是什麼

4.Python IDE有哪些,哪款適合初學者?

5.Python IDLE使用方法(包含常用快捷鍵)

6.Python註釋

7.Python縮進規則(包含快捷鍵)

8.Python編碼規範(PEP 8)

9.Python標識符命名規範

10.Python關鍵字(保留字)

11.Python內置函數

第3章 變量類型和運算符

1.Python變量及其使用

2.Python數值類型(整形、浮點型和複數)

3.Python字符串

4.Python bytes

5.Python bool布爾類型

6.Python len()函數:獲取字符串長度或字節數

7.Python input()函數:獲取用戶輸入的字符串

8.Python print()函數高級用法

9.Python格式化字符串

10.Python轉義字符

11.Python數據類型轉換

12.Python算術運算符

13.Python賦值運算符

14.Python位運算符

15.Python比較運算符

16.Python邏輯運算符

17.Python三目運算符

18.Python運算符優先級

第4章 列表、元組、字典和集合

1.什麼是序列,Python序列詳解

2.Python列表(list)

3.Python list列表添加元素

4.Python list列表刪除元素

5.Python list列表修改元素

6.Python list常用方法

7.Python tuple元組詳解

8.Python元組和列表的區別

9.Python dict字典

10.Python dict字典基本操作

11.Python dict字典方法完全攻略

12.Python使用字典格式化字符串

13.Python set集合

14.Python set集合基本操作

15.Python set集合方法

16.Python frozenset集合

第5章 Python字符串常用方法

1.Python字符串拼接(包含字符串拼接數字)

2.Python截取字符串

3.Python split()分割字符串方法

4.Python join()合併字符串方法

5.Python count

6.Python find

7.Python index

8.Python startswith()和endswith()

9.Python字符串大小寫轉換

10.Python去除字符串中空格

11.Python format()格式化輸出方法

12.Python encode()和decode()方法

13.Python dir()和help()

第6章 Python流程控制

1.Python if else條件語句

2.Python pass

3.Python assert斷言

4.Python while循環

5.Python for循環

6.Python循環結構中else用法

7.Python循環嵌套

8.Python列表推導式

9.Python zip函數

10.Python reversed函數

11.Python sorted函數

12.Python break

13.Python continue

14.Python項目實戰之數字轉人民幣讀法

15.Python項目實戰之繞圈圈面試題

第7章 函數和lambda表達式

1.Python函數

2.Python函數返回多個值

3.Python函數遞歸

4.Python關鍵字參數

5.Python默認參數

6.Python可變參數

7.Python函數參數傳遞機制

8.Python變量作用域

9.Python局部函數

10.Python函數高級用法

11.Python lambda表達式

第8章 Python類和對象

1.Python類的定義

2.Python類對象的創建和使用

3.python self

4.Python類調用實例方法

5.Python靜態方法和類方法

6.Python @函數裝飾器

7.Python類命名空間

8.Python類變量和實例變量

9.Python property函數

10.Python封裝

11.Python繼承機制

12.Python父類方法重寫

13.Python super

14.Python __slots__

15.Python type

16.Python metaclass

17.Python多態

18.Python issubclass和isinstance

19.Python枚舉類

第9章 Python異常處理機制

1.Python異常處理機制

2.Python try except else

3.Python finally

4.Python raise

5.Python traceback

6.正確使用Python異常處理機制

第10章 類特殊成員(屬性和方法)

1.Python __repr__

2.Python __del__

3.Python __dir__

4.Python __dict__

5.Python setattr、getattr、hasattr

6.Python __call__

7.Python 序列相關操作

8.Python __iter__和__reversed__

9.Python生成器

第11章 Python模塊和包

1.Python import導入模塊

2.Python自定義模塊

3.Python加載模塊

4.Python __all__變量

5.Python包

6.Python查看模塊方法

7.Python __doc__

8.Python __file__

第12章 Python常見模塊

1.Python sys

2.Python os

3.Python random

4.Python time

5.Python json

6.Python re

7.Python set和frozenset

8.Python queue

9.Python heapq

10.Python ChainMap

11.Python Counter

12.Python defaultdict

13.Python namedtuple

14.Python OrderedDict

15.Python itertools

16.Python functools

第13章 Tkinter

1.Python GUI庫

2.Python Tkinter

3.Python Tkinter Pack

4.Python Tkinter Grid

5.Python Tkinter Place

6.Python Tkinter command和bind

7.Python Tkinter ttk

8.Python Tkinter Variable

9.Python Tkinter compound

10.Python Tkinter Entry和Text

11.Python Tkinter Radiobutton和Checkbutton

12.Python Tkinter Listbox和Combobox

13.Python Tkinter Spinbox

14.Python Tkinter Scale和LabeledScale

15.Python Tkinter LabelFrame

16.Python Tkinter Panedwindow

17.Python Tkinter OptionMenu

18.Python Tkinter對話框

19.Python Tkinter自定義對話框

20.Python Tkinter輸入對話框

21.Python Tkinter文件對話框

22.Python Tkinter askcolor

23.Python Tkinter消息框

24.Python Tkinter Menu菜單

25.Python tkinter Canvas

26.tkinter Canvas tag_bind

27.Python tkinter Canvas繪製動畫

第14章 Python文件操作(I/O)

1.Python pathlib

2.Python os.path

3.Python fnmatch

4.Python open

5.Python read

6.Python readline和readlines

7.Python fileinput

8.Python for循環讀取文件

9.Python with

10.Python linecache

11.Python寫入文件(write和writelines)

12.Python os

13.Python tempfile

第15章 Python數據庫編程

1.Python數據庫API

2.Python SQLite創建數據表

3.SQLite Expert安裝和使用

4.Python execute和executemany

5.Python fetchone、fetchmany和fetchall

6.Python executescript

7.Python SQLite create_function

8.Python SQLite create_aggregate

9.Python SQLite create_collation

10.MySQL數據庫下載和安裝

11.Python pip

12.Python MySQL數據庫執行DDL語句

13.Python MySQL數據庫執行DML語句

14.Python MySQL數據庫執行查詢語句

15.Python MySQL callproc

第16章 Python併發編程

1.什麼是線程(多線程)

2.Python創建線程

3.Python線程的生命週期

4.Python Thread join

5.Python守護線程

6.Python sleep

7.Python線程安全(同步鎖Lock)

8.Python線程死鎖

9.Python condition實現線程通信

10.Python Queue隊列實現線程通信

11.Python Event實現線程通信

12.Python線程池

13.Python threading Local

14.Python Timer定時器

15.Python schedule

16.Python fork

17.Python Process

18.Python設置進程啓動的2種方式

19.Python使用進程池管理進程

20.Python進程間通信的方法

第17章 Python網絡編程

1.什麼是計算機網絡,TCP/IP協議和端口號

2.Python網絡編程模塊

3.Python urllib.parse

4.Python urllib.request

5.Python http.cookiejar

6.什麼是TCP協議

7.Python socket建立TCP連接

8.Python多線程實現socket通信

9.Python socket shutdown

10.Python selectors

11.UDP協議是什麼

12.socket發送和接受數據(基於UDP協議)

13.UDP多點廣播

14.Python smtplib

15.Python poplib

第18章 Python文檔和測試

1.Python pydoc

2.Python doctest

3.Python unittest(PyUnit)

4.Python TestSuite

5.Python setUp和tearDown

6.Python unittest跳過測試用例

第19章 Python打包和發佈

1.Python zipapp打包

2.Python PyInstaller

第20章 Python數據可視化

1.Python Matplotlib安裝

2.Python Matplotlib plot

3.Python Matplotlib legend

4.Python Matplotlib time、xlabel、ylabel、xticks、yticks

5.Python Matplotlib subplot

6.Python Matplotlib pie

7.Python Matplotlib繪製柱狀圖(bar和barh函數)

8.Python Matplotlib scatter

9.Python Matplotlib contour和contourf

10.Python plot_surface

11.Python Pygal

12.Python Pygal常見數據圖

13.Python讀取csv文件

14.Python讀取JSON文件

15.Python讀取網絡數據

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章