前言:這篇文章是“l(fā)earn by example”整理的Python資源列表。你會看到文章內(nèi)有很多英文沒有翻譯,那是因?yàn)楸救藭簳r(shí)沒有多余的時(shí)間,只把主要的枝干漢化了下。如果你喜歡這里列出的資源并且想利用它學(xué)習(xí)和提升自己的Python編程能力,這篇文章就到位了。有多余時(shí)間或者感興趣的朋友歡迎在GitHub上點(diǎn)擊fork本資源進(jìn)行翻譯(甚至一些補(bǔ)充和修改),然后提交合并請求。
Python 3 資源,除非特別指明
看看Python官方網(wǎng)站的 Basic concepts and features tutorial 和 Getting Started
目錄
- Courses - 線上文本/pdf教程
- Courses - 線上視頻/交互式教程
- 書籍
- 文檔與Cheat-Sheets
- 建議和技巧
- 簡單概念的深入分析/教程
- 便利工具
- 進(jìn)一步閱讀
- 其他Python資源列表
- 實(shí)戰(zhàn)/編程挑戰(zhàn)
- 提供解決方案的編程問題/項(xiàng)目
- 開發(fā)環(huán)境
- 論壇
Courses - 線上文本/pdf教程
-
automatetheboringstuff
- 訪問inventwithpython獲取這個(gè)作者更多的資料
- Think Python - 可獲取pdf
- diveintopython - 可獲取pdf
- A Whirlwind Tour of Python
- A Byte of Python - 可獲取pdf
- Python Informatics
- Python for you and me
- python-course
- Non-Programmer's Tutorial for Python 3 - 可獲取pdf
- 練習(xí)書 - Python 2,每個(gè)主題都有很好的練習(xí)
快速指南
Courses - 線上視頻/交互式教程
- udemy - automatetheboringstuff
- coursera - getting started with Python
- edx - intro to computer science as a tool to solve real-world analytical problems
- pythonprogramming
- learn Python through challenging problems
- youtube - Python programming
- Google - Python 2
- youtube - learn Python 2 and make games
- Real Python - 聚焦于web開發(fā)
- newcoder - project based
- opencs - Python from scratch
- cscircles - example and exercise based
書籍
文檔和Cheat-Sheets
- Python 3
- Python 2.7
- Cheat Sheet by Derek - 也有對應(yīng)的video
- Python Crash Course - cheatsheet
- Scientific Python Cheatsheet
建議和技巧
- 40 handy tricks
- useful snippets
- avoiding common gotchas
- Transforming Code into Beautiful, Idiomatic Python,基于這個(gè)video
- Python tips and features on Stackoverflow
- pythontips book
- One-liners: #1, #2, #3
簡單概念的深入分析/教程
- this illustration - 查看generators、 collections、itertools、decorator等等的特性
- Collections
- Decorators
- Lists
- Iterables, Generators, Yield, Itertools
- lambda - what it is and when to use
- OOP
- Python Virtual Environments
- Regular Expressions:
- official doc of re module
- regexone - interactive tutorial, also has a quick reference
- regular expressions tutorial
- shortcutfoo - you can also learn it interactively
- Python regex tutorial - from Google course
- stackoverflow - comprehensive list of regex FAQ and regex overview
- string formatting
- working with binary data
- Python Q&A on stackoverflow
- Python packaging guide
- profiling Python code for performance
便利工具
- Visualize code execution - 有示例代碼,可以分享線程
- CodeSkulptor - 在瀏覽器上運(yùn)行Python程序,包括GUI和很多demo
- regex tester - explainations on separate windows, includes quick references, ability to save and share
- Thonny - 初學(xué)者Python IDE,有很多便利的特性:查看變量、調(diào)試器、高亮語法錯誤、名稱補(bǔ)全等等
進(jìn)一步閱讀
- Data Science
- GUI, Game and Web
- gui development tutorials
- kivy crash course
- remi module - create platform independent GUI with Python (by converting to HTML)
- Bokeh - Python interactive visualization library
- django, djangogirls and flask
- static website generators pelican and Cactus
- anvil - drag & drop web-app builder
- web product - a complete functional web app with a database and user support
- web scraping
- Testing and TDD
- Test-Driven Development with Python - focussed on Django and web-development
- learn Python via TDD
- defensive programming
- pycontracts
- is unit testing worth the effort
- Style guide
- The Hitchhiker’s Guide to Python!
- Problem solving with Algorithms and Data Structures
- realpython - blog
- Create beautiful command-line interfaces with Python
- collection of design patterns and idioms
- curated videos on Python
- github - trending Python projects and top devs and repos to follow
- A gallery of interesting IPython Notebooks
其他Python資源列表
- wiki from /r/learnpython
- github - awesome-python
- github - pycrumbs
- github - pythonidae
- stackoverflow
- zeef - alan richmond
- zeef - luis solis
- messybytes
- EDU-SIG: Python in Education
實(shí)戰(zhàn)/編程挑戰(zhàn)
- codewars
- adventofcode
- projecteuler
- hackerrank
- /r/dailyprogrammer
- codingbat
- exercism
- practicepython
- codeeval
- Gamification
提供解決方案的編程問題/項(xiàng)目
開發(fā)環(huán)境
- pycharm
- Vim - customizing .vimrc for Python and python-mode
- Jupyter - web application that allows you to create and share documents that contain live code, equations, visualizations and explanatory text
論壇
在對應(yīng)的論壇提問前閱讀指示。在問之前嘗試解決 - 網(wǎng)絡(luò)搜索、查看手冊、問同事等等。
- /r/learnpython - very friendly for newbies
- python-forum
- /r/Python/ - general Python discussion
- stackoverflow