我關於我一直在看的一些代碼的一些問題。 @staticmethod
和@property
在Python中的方法定義之上寫入時的含義如下所示?基本的Python方法定義
@staticmethod
def methodName(parameter):
Class_Name.CONSTANT_VARIABLE = parameter
@property
def methodName(parameter):
Class_Name.CONSTANT_VARIABLE = parameter
文檔? [staticmethod](http://docs.python.org/release/3.1.5/library/functions.html#staticmethod),[property](http://docs.python.org/release/3.1.5/library /functions.html#property) – jdi
檢查出[鏈接](http://stackoverflow.com/questions/739654/understanding-python-decorators) –