2009-07-23から1日間の記事一覧
"If it walks like a duck and quacks like a duck, it must be a duck" (もしもそれがアヒルのように歩き、アヒルのように鳴くのなら、それはアヒルである) # 実装が同じクラスA,Bを定義 >>> class A(object): def printType(self): print('type' + type(…
"If it walks like a duck and quacks like a duck, it must be a duck" (もしもそれがアヒルのように歩き、アヒルのように鳴くのなら、それはアヒルである) # 実装が同じクラスA,Bを定義 >>> class A(object): def printType(self): print('type' + type(…