步驟1:基礎
我們首先學習Python/ target=_blank class=infotextkey>Python的基礎知識——變量、數據類型和操作符。還要學習循環和決策制定等概念:
- Python Variables
- Python Variable Scope
- Data Types in Python
- Python Operators
- Bitwise Operators
- Comparison Operators
- Operator Precedence
- Ternary Operators
- Python Decision Making
- Switch-case in Python
- Loops in Python
- Numbers with Python
- Python Strings
- String Formatters and Escape Sequences
- String Functions and Operations
- The repr() Function
步驟2:數據結構
了解像列表和元組這樣的數據結構以及對它們執行的操作。還要了解其他數據結構,如字典和集合。
- Python Lists
- List Comprehension
- The array Module
- Python Tuples
- The zip() Function
- Tuples vs Lists
- Slicing in Python
- Binary Sequence Types- bytes, bytearray, memoryview
- Dictionaries in Python
- Sets in Python
- Booleans in Python
步驟3:函數式編程
接下來,學習使用函數參數和lambda表達式等概念進行函數編程。另外,看看一些重要的內置函數。最后,學習decorator、closure和itertools。
- Functions in Python
- Lambda Expressions
- Function Arguments
- Function Recursion
- Built-in Functions
- range()
- eval()
- exec()
- Decorators in Python
- Closure in Python
- Working with itertools
步驟4:模塊和包
接下來是學習如何創建模塊和包,并實踐一些重要的模塊和包。然后比較包和模塊。
- Modules
- Counter
- Defaultdict
- OrderedDict
- namedtuple
- Numeric Modules-math,decimal, random
- sys
- Generating Random Numbers
- Packages
- pip and PyPI
- Modules vs Packages
步驟5:進階Python
是時候深入挖掘Python了!此步驟將帶您了解更高級的概念,如正則表達式、日期和時間以及調試。
- Regular Expressions with Python
- Multithreading in Python
- Working with Date and Time
- Namespace and Scope
- Virtual Environments and Packages
- The datetime Module - Part I
- The datetime Module - Part II
- The calendar Module
- The Python Debugger (pdb)
- CGI Programming with Python
- Understanding urllib
- Terminologies in Python
- What's new in Python 3.7?
- Deep Copy vs Shallow Copy
- Assert Statements in Python
- Pretty-Printing with pprint
步驟6:面向對象編程
我們現在開始討論面向對象編程。我們討論類、方法和對象。然后,我們嘗試著手進行繼承和操作符重載。最后,我們討論一些概念,如生成器、迭代器和屬性。
- Methods in Python
- Methods vs Functions
- Magic (Dunder) Methods
- Classes in Python
- Abstract class
- Concrete class
- Python Objects
- Inheritance in Python
- Multiple Inheritance
- Python Operator Overloading
- Generators in Python
- Iterators in Python
- Generators vs Iterators
- Serialization with pickle
- The property Decorator
步驟7:文件處理
現在探索其他概念,如文件處理。這個模塊教你如何在OS和shutil模塊的幫助下操作文件。您還將學習如何使用Python復制、重命名和壓縮文件。
- Reading and Writing Files
- Managing Directories and Files
- The OS Module
- The shutil Module
- Copying Files with Python
- Renaming Files with Python
- Zipping Files with Python
步驟8:異常處理
現在學習異常處理和unittest
- Errors and Exceptions
- Exception Handling
- Testing with unittest
步驟9:重要的包
有了這樣強大的庫,就有可能培養出像Python這樣的工具的真正功能。
- Python Libraries
- NumPy
- SciPy
- pandas
- Visualizing with matplotlib
- PyQT
- PyGTK
- PyTorch
- Altair
- Web Scraping with Scrapy
- Data access mechanisms
- Spacy
- pygame
- tkinter
步驟10:其他功能
現在學習一些概念,如發送郵件、使用Python訪問數據庫、日志和多過程。
- XML Processing
- Sending Mail with Python
- Processing Images
- GUI Programming
- Forensics
- Extensions to Python
- Tools
- Accessing the Database
- Logging with Python
- Multiprocessing