首页 > AI前沿 > PyLings: Solve Exercises and Learn Python

PyLings: Solve Exercises and Learn Python

Hacker News 2026-11-07 00:59 16 阅读 查看原文
PyLings 🐍 Python interview practice, rustlings-style: 35 warm-ups + 20 interview exercises, from easy to hard. Python 3.14, no dependencies. Start python3 -m pylings It opens the next exercise and re-runs its tests every time you save. Keys: n next · h hint · r re-run · l list · c check all · x reset · s solution · q quit Exercises Solutions are in solutions/ (same layout). Interview questions are in questions/middle.md and questions/senior.md. Tips Don't open solutions/ until the tests pass. Name the edge cases before you write code. When the tests pass, answer the Discussion questions at the end of the exercise. That's what interviewers ask. Without pylings python3 -m unittest discover -s tests -p "test_ex05*" -v Check the reference solutions: SOLUTIONS=1 python3 -m unittest discover -s tests