// the find
michaelliao/learn-python3
Learn Python 3 Sample Code
Sample code companion to liaoxuefeng's Chinese-language Python 3 tutorial at liaoxuefeng.com. Each file maps to a chapter — you run it alongside the tutorial text, not standalone. Audience is Chinese-speaking beginners learning Python from scratch.
Coverage is genuinely broad for a tutorial repo: basics, OOP, functional patterns, async/coroutines, multitasking, DB access (SQLite, MySQL, SQLAlchemy), and even MicroPython for hardware projects. The async samples (aio_web, async_wget) go further than most beginner tutorials bother. MicroPython examples for RC cars and tanks are a fun differentiator that will hook hardware-curious learners. Files are small and self-contained — easy to read and run in isolation.
Completely useless without the external tutorial; the README is one link and the code has minimal comments, so anyone who doesn't read Chinese is stuck. No requirements.txt or pyproject.toml — third-party samples (Flask, SQLAlchemy, Pillow) will just fail silently until you figure out what to install. Last meaningful update was 2024 and some samples (do_flask.py in a Flask 0.x style, the old-school SAX XML parsing) are showing their age. No tests beyond the two token unittest/doctest examples, so there's nothing to verify the samples actually run against a current Python version.