HCB(五):承先啟後的瞬間
版面雜談
求粗在聲 --- 一個言和行的反思平衡實例
筆者今天拜讀了陳雲大師的 一篇文章 ,擊節讚賞之餘,不禁技癢,想狗尾續貂也寫一篇,以發揮和補充一下大師的洞見(insight)。
由 h 音到深喉
陳雲大師在文章裏講粵語和普通話的分別,一矢中的地指出「粵
Another reason to avoid using __slots__ in your Python classes
Presented in the traditional illustrated form:
class A(object): __slots__ = ('a',)class B1(A): __slots__ = ('b1',)class B2(A): __slots__ = ('b2',)Now try to define a class C that inherits from both B1 and B2,and you will get:
TypeError: Error when calling the metaclass bases
multiple bases have instance lay
A difference between Python 'structs' and C structs
I've written before about how I emulate C structs in Python . This is only an emulation, and one of thedifferences between the two, one that is sometimes important, is thatelements in such a Python struct do not have an order.
Where this comes up for me is that every so often I want to useintrospection of a Python struct to automatically map between the Pythonstruct and some flat ordering of the fields, such as a file or a networkprotocol message. With no inherent order to the
讀者不留言
關於這個問題,我反覆思考了很多遍,因為這個問題頗複雜,例如︰為甚麼我需要人留言呢?那些甚麼「你
Nikon 180mm 2.8D首試
西平英生推介幾支性價比高的鏡頭,剛好我都入手了,sigma 24mm f1.8 marco,sigma 50mm f1.4,nikon 85mm 1.8D,nikon 135mm f2 dc,nikon 300mm f4。偏偏沒有西平所推介的180mm f2.8d,說真的,沒想過這個尷尬
