2006-09-30から1日間の記事一覧
Dive Into Pythonの 4. The Power Of Introspection 5. Objects and Object-Orientation あたりを読んでいて思い付きました。何度目の車輪の再発明なのかは謎です。まず、以下のようなクラスを定義します。 class Object: def __init__(self, instance): sel…
Dive Into Pythonの 4. The Power Of Introspection 5. Objects and Object-Orientation あたりを読んでいて思い付きました。何度目の車輪の再発明なのかは謎です。まず、以下のようなクラスを定義します。 class Object: def __init__(self, instance): sel…