interview_python
关于Python的面试题
A comprehensive Chinese-language study guide of Python interview questions and answers covering language internals, OS concepts, databases, networking, and coding problems, read in the browser, nothing to install.
This repository is a Chinese-language collection of interview questions about Python, packaged as a single long Markdown document. The README's description, 关于Python的面试题, translates as "Python-related interview questions" — that is the whole project. There is no software to install or run; it is a study guide that a developer preparing for a job interview in China can read through to brush up on what gets asked.
It is organised as one big table of contents followed by a question-and-answer section for each topic. The bulk of the material covers Python language features: how function arguments are passed, metaclasses, @staticmethod and @classmethod, class vs instance variables, iterators and generators, decorators and aspect-oriented programming, duck typing, __new__ vs __init__, singleton patterns, the Global Interpreter Lock, coroutines, closures, lambdas, copy vs deepcopy, garbage collection, and Python 2 vs 3 differences. Shorter sections cover operating systems (select/poll/epoll, deadlocks, virtual memory), databases (transactions, indexes, Redis, locks, MVCC, MyISAM vs InnoDB), networking (TCP handshakes, ARP, GET vs POST, HTTP vs HTTPS, REST, SOAP, RPC, XSS), Unix IPC, the red-black tree, and common coding-interview problems with worked solutions.
Someone would use this if they are a Chinese-speaking developer preparing for a Python-focused interview and want one place to read through canonical answers and code snippets, or to test themselves against the topic list. The "language" the repository is tagged with is Shell, but in practice this is a documentation repo rather than a runnable program. The full README is longer than what was provided.
Where it fits
- Review Python language internals like the GIL, generators, decorators, and metaclasses before a job interview
- Brush up on database concepts including MVCC, indexing, Redis, and MyISAM vs InnoDB for a backend engineering screen
- Study networking fundamentals like TCP handshakes, HTTP vs HTTPS, and REST before a technical interview
- Practice common algorithmic coding problems with the worked solutions included in the guide