資源簡介
zipDecoder.zip

代碼片段和文件信息
#?Copyright?2007?Google?Inc.?All?Rights?Reserved.
#?Licensed?to?PSF?under?a?Contributor?Agreement.
“““Abstract?base?Classes?(ABCs)?according?to?PEP?3119.“““
from?_weakrefset?import?WeakSet
def?abstractmethod(funcobj):
????“““A?decorator?indicating?abstract?methods.
????Requires?that?the?metaclass?is?ABCmeta?or?derived?from?it.??A
????class?that?has?a?metaclass?derived?from?ABCmeta?cannot?be
????instantiated?unless?all?of?its?abstract?methods?are?overridden.
????The?abstract?methods?can?be?called?using?any?of?the?normal
????‘super‘?call?mechanisms.
????Usage:
????????class?C(metaclass=ABCmeta):
????????????@abstractmethod
????????????def?my_abstract_method(self?...):
????????????????...
????“““
????funcobj.__isabstractmethod__?=?True
????return?funcobj
class?abstractclassmethod(classmethod):
????“““
????A?decorator?indicating?abstract?classmethods.
????Similar?to?abstractmethod.
????Usage:
????????class?C(metaclass=ABCmeta):
????????????@abstractclassmethod
????????????def?my_abstract_classmethod(cls?...):
????????????????...
????‘abstractclassmethod‘?is?deprecated.?Use?‘classmethod‘?with
????‘abstractmethod‘?instead.
????“““
????__isabstractmethod__?=?True
????def?__init__(self?callable):
????????callable.__isabstractmethod__?=?True
????????super().__init__(callable)
class?abstractstaticmethod(staticmethod):
????“““
????A?decorator?indicating?abstract?staticmethods.
????Similar?to?abstractmethod.
????Usage:
????????class?C(metaclass=ABCmeta):
????????????@abstractstaticmethod
????????????def?my_abstract_staticmethod(...):
????????????????...
????‘abstractstaticmethod‘?is?deprecated.?Use?‘staticmethod‘?with
????‘abstractmethod‘?instead.
????“““
????__isabstractmethod__?=?True
????def?__init__(self?callable):
????????callable.__isabstractmethod__?=?True
????????super().__init__(callable)
class?abstractproperty(property):
????“““
????A?decorator?indicating?abstract?properties.
????Requires?that?the?metaclass?is?ABCmeta?or?derived?from?it.??A
????class?that?has?a?metaclass?derived?from?ABCmeta?cannot?be
????instantiated?unless?all?of?its?abstract?properties?are?overridden.
????The?abstract?properties?can?be?called?using?any?of?the?normal
????‘super‘?call?mechanisms.
????Usage:
????????class?C(metaclass=ABCmeta):
????????????@abstractproperty
????????????def?my_abstract_property(self):
????????????????...
????This?defines?a?read-only?property;?you?can?also?define?a?read-write
????abstract?property?using?the?‘long‘?form?of?property?declaration:
????????class?C(metaclass=ABCmeta):
????????????def?getx(self):?...
????????????def?setx(self?value):?...
????????????x?=?abstractproperty(getx?setx)
????‘abstractproperty‘?is?deprecated.?Use?‘property‘?with?‘abstractmethod‘
????instead.
????“““
????__isabstractmethod__?=?True
class?ABCmeta(type):
????“““metaclass?for?defining?Abstract?base?Classes?(ABCs).
???
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-12-10?16:05??zipDecoder\
?????文件????????3835??2017-12-10?15:44??zipDecoder\decoderZip.pyw
?????目錄???????????0??2017-12-10?11:43??zipDecoder\Obj\
?????目錄???????????0??2017-12-10?11:43??zipDecoder\Obj\DLLs\
?????文件???????75809??2017-10-30?22:02??zipDecoder\Obj\DLLs\py.ico
?????文件???????78396??2017-10-30?22:02??zipDecoder\Obj\DLLs\pyc.ico
?????文件???????83351??2017-10-30?22:02??zipDecoder\Obj\DLLs\pyd.ico
?????文件??????197784??2017-10-30?22:02??zipDecoder\Obj\DLLs\pyexpat.pyd
?????文件??????155582??2017-10-30?22:02??zipDecoder\Obj\DLLs\python_lib.cat
?????文件???????25407??2017-10-30?22:02??zipDecoder\Obj\DLLs\python_tools.cat
?????文件???????27288??2017-10-30?22:02??zipDecoder\Obj\DLLs\select.pyd
?????文件?????1124504??2017-10-30?22:02??zipDecoder\Obj\DLLs\sqlite3.dll
?????文件?????1666048??2017-10-30?22:02??zipDecoder\Obj\DLLs\tcl86t.dll
?????文件?????1967104??2017-10-30?22:02??zipDecoder\Obj\DLLs\tk86t.dll
?????文件??????906392??2017-10-30?22:02??zipDecoder\Obj\DLLs\unicodedata.pyd
?????文件???????28312??2017-10-30?22:02??zipDecoder\Obj\DLLs\winsound.pyd
?????文件???????60568??2017-10-30?22:01??zipDecoder\Obj\DLLs\_asyncio.pyd
?????文件???????94872??2017-10-30?22:01??zipDecoder\Obj\DLLs\_bz2.pyd
?????文件??????130200??2017-10-30?22:01??zipDecoder\Obj\DLLs\_ctypes.pyd
?????文件???????31896??2017-10-30?22:01??zipDecoder\Obj\DLLs\_ctypes_test.pyd
?????文件??????267928??2017-10-30?22:01??zipDecoder\Obj\DLLs\_decimal.pyd
?????文件??????170648??2017-10-30?22:01??zipDecoder\Obj\DLLs\_elementtree.pyd
?????文件?????1664152??2017-10-30?22:01??zipDecoder\Obj\DLLs\_hashlib.pyd
?????文件??????254616??2017-10-30?22:01??zipDecoder\Obj\DLLs\_lzma.pyd
?????文件???????38552??2017-10-30?22:01??zipDecoder\Obj\DLLs\_msi.pyd
?????文件???????29848??2017-10-30?22:01??zipDecoder\Obj\DLLs\_multiprocessing.pyd
?????文件???????43160??2017-10-30?22:01??zipDecoder\Obj\DLLs\_overlapped.pyd
?????文件???????72856??2017-10-30?22:01??zipDecoder\Obj\DLLs\_socket.pyd
?????文件???????85656??2017-10-30?22:01??zipDecoder\Obj\DLLs\_sqlite3.pyd
?????文件?????2061464??2017-10-30?22:01??zipDecoder\Obj\DLLs\_ssl.pyd
?????文件???????52376??2017-10-30?22:01??zipDecoder\Obj\DLLs\_testbuffer.pyd
............此處省略1419個文件信息
- 上一篇:MDSolids30.zip
- 下一篇:計算理論課后答案.rar
評論
共有 條評論