來自豆瓣小明同學(xué)的Blog,Python進階必讀匯總.
發(fā)布于,Nov 8th, 2015
前言
昨天翻到了一本在github開源的書: Intermediate Python. 就有了此文, 梳理了一下一些之前翻到的對python語言細(xì)節(jié)點的答案, 博文等.
英文的
-
super
-
Python’s super() considered super!
rhettinger是python核心開發(fā)者. 這篇博文也是講super最好最深入的博文了.
-
Python’s super() considered super!
-
裝飾器
-
Understanding Python Decorators
如果你還沒有經(jīng)常性的用裝飾器, 你就要思考你的工作需求是不是的太簡單了, 或者該考慮下這種AOP模式的開發(fā)的作用了
-
Understanding Python Decorators
-
元類
-
What is a metaclass in Python? Metaclasses Demystified
元類是python高階語法. 合理的使用可以減少大量重復(fù)性的代碼.
防御性編程中的LBYL和EAFP -
Try/catch or validation for speed?
這其實就是事先檢查和異常處理2個方式的討論
-
What is a metaclass in Python? Metaclasses Demystified
-
new 和 init
-
Python (and Python C API): new versus init
這也是一個常見的面試題.
-
Python (and Python C API): new versus init
-
self
-
Python “self” keyword
但是注意標(biāo)題. 其實self不是一個關(guān)鍵詞. 這里知識幫助你理解self的用意
-
Python “self” keyword
-
協(xié)程和并發(fā)
-
生成器
-
python開發(fā)必讀
-
unicode必讀
-
Unicode In Python, Completely Demystified
之前我曾經(jīng)非常困惑于各種unicode報錯
-
Unicode In Python, Completely Demystified
-
exec和eval
-
Be careful with exec and eval in Python
我的觀點是從來都不要用exec/eval
-
Be careful with exec and eval in Python
-
python性能貼士
PerformanceTips Python Performance Tips, Part 1 Python Performance Tips, Part 2
-
描述符
-
python隱藏特性
-
設(shè)計模式
-
初級python進階文檔
-
Intermediate and Advanced Software Carpentry in Python
這個文檔不是非常難, 甚至有點過時. 但是涵蓋了python的方方面面. 非常有助于開拓視野, 更了解python
-
Intermediate and Advanced Software Carpentry in Python
中(譯)文
-
如何理解Python關(guān)鍵字yield
- What does the yield keyword do in Python
-
如何理解Python關(guān)鍵字yield
yield 是python語言里面讓初學(xué)者困惑的關(guān)鍵詞之一. 可以參考這2個理解讓你對yield入門. 并且之后在正確的場景下使用
-
迭代器(Iterator)與生成器(Generator)的區(qū)別
-
設(shè)計模式入門
-
寫給Python初學(xué)者的設(shè)計模式入門
所謂設(shè)計模式其實就是經(jīng)過總結(jié)、優(yōu)化的,對我們經(jīng)常會碰到的一些編程問題的可重用解決方案. 其實有時候會發(fā)現(xiàn)沃恩日常工作中的一些思考就是設(shè)計模式 - python設(shè)計模式- 我寫的. 供參考.
-
寫給Python初學(xué)者的設(shè)計模式入門
-
描述符
- Descriptor HowTo Guide
-
Python描述器引導(dǎo)(翻譯)
descriptor是python高階的特性, 可以了解下python設(shè)計的優(yōu)雅. PS: 里面也提到了類方法和靜態(tài)方法的區(qū)別
-
使用斷言(assert)的正確場景
-
提高編碼效率
-
Stackoverflow上的Python問題精選
-
Python魔法方法指南
-
Python高級編程 - 我寫的
-
Python高級編程
洪強寧的ppt. -
Python高級編程(二)
PS: 這個 二
和上一個沒有任何次序關(guān)系
-
Python高級編程