notes-python
中文 Python 笔记
A collection of Chinese-language Python study notes as interactive Jupyter Notebooks covering basics, NumPy, SciPy, Matplotlib, and advanced topics including Cython, designed for self-study.
This repository is a collection of Chinese-language Python study notes presented as Jupyter Notebook files. The notes cover a broad curriculum starting from Python tools and the basics of the language, then moving into scientific computing libraries including NumPy, SciPy, and Matplotlib, and finally covering more advanced Python topics and how to extend Python with code written in other languages.
The topics sections include Python data types, strings, lists, dictionaries, loops, functions, modules, and file input and output. The NumPy section covers arrays, array shapes, sorting, matrix operations, broadcasting, and reading and writing array data. The SciPy section covers interpolation, statistics, curve fitting, optimization, integration, and sparse matrices. The Matplotlib section covers plotting basics, style sheets, text handling, annotations, and a variety of chart types.
Advanced Python topics include iterators, generators, decorators, context managers, regular expressions, working with CSV files and SQL databases, and dynamic code execution. A section on interfacing with other languages covers writing Python extension modules and using Cython to call C and C++ code from Python.
The README notes the content is largely assembled from online sources and is provided for personal study and reference only. Commercial use is not permitted. A physical book based on this material has been published in Chinese. The notes were originally written for Python 2.7, which is now outdated, so readers following along may encounter differences if using a modern Python version.
Where it fits
- Work through Python fundamentals, data types, loops, functions, and modules, using interactive notebook examples you can run and edit.
- Study NumPy array operations and SciPy scientific computing methods with runnable code cells.
- Learn how to write Python extension modules and call C or C++ code from Python using Cython.