步骤1:基础
我们首先学习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
- Networking
- Processing Images
- GUI Programming
- Forensics
- Extensions to Python
- Tools
- Accessing the Database
- Logging with Python
- Multiprocessing