justmarkham/python-reference
justmarkham/python-reference has 710 GitHub stars and 408 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 19:27 UTC. Last push 2025-06-08.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 업데이트 지연
- in 15 days
- 업데이트 지연
- in 1 month
- 업데이트 지연
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Python Quick Reference
개발 도구README.md
OriginalPython Quick Reference
View as a Python script or a Jupyter notebook
This is the reference guide to Python that I wish had existed when I was learning the language.
Here's what I want in a reference guide:
- High-quality examples that show the simplest possible usage of a given feature
- Explanatory comments, and descriptive variable names that eliminate the need for some comments
- Presented as a single script (or notebook), so that I can keep it open and search it when needed
- Code that can be run from top to bottom, with the relevant objects defined nearby
This is not written as a full-fledged Python tutorial, though I ordered the topics such that you can read it like a tutorial (i.e., each topic depends only on material preceding it).
The guide was written using Python 2 but is fully compatible with Python 3. Relevant differences between Python 2 and 3 are noted throughout the guide.
Table of Contents
Click to jump to the relevant section of the script or the notebook:
- Imports (script, notebook)
- Data Types (script, notebook)
- Math (script, notebook)
- Comparisons and Boolean Operations (script, notebook)
- Conditional Statements (script, notebook)
- Lists (script, notebook)
- Tuples (script, notebook)
- Strings (script, notebook)
- Dictionaries (script, notebook)
- Sets (script, notebook)
- Defining Functions (script, notebook)
- Anonymous (Lambda) Functions (script, notebook)
- For Loops and While Loops (script, notebook)
- Comprehensions (script, notebook)
- Map and Filter (script, notebook)
Other Python Resources
If you are looking for a resource that will help you to learn Python from scratch, check out my course, Python Essentials for Data Scientists.
Suggestions or Corrections
If there's a topic or example you'd like me to add to this guide, or you notice a mistake, please create a GitHub issue or leave a blog comment.
Thank you!