Changes between Version 12 and Version 13 of Python
- Timestamp:
- 01/03/08 16:37:56 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Python
v12 v13 63 63 64 64 == staticmethod == 65 * デコレータ関数なので以下のように使う 66 {{{ 67 #!python 68 >>> class Hoge: 69 ... @staticmethod 70 ... def hoge(*args): 71 ... print ', '.join([str(i) for i in args]) 72 ... 73 >>> Hoge.hoge(1, '2', 3.3, None, False, Hoge) 74 1, 2, 3.3, None, False, __main__.Hoge 75 }}} 76 * 別に以下のようにしても問題はない 65 77 {{{ 66 78 #!python