資源簡介
不需要安裝,包括python原始的安裝包,分享給大家,希望多多交流
代碼片段和文件信息
#?Copyright?2007?Google?Inc.?All?Rights?Reserved.
#?Licensed?to?PSF?under?a?Contributor?Agreement.
“““Abstract?base?Classes?(ABCs)?according?to?PEP?3119.“““
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
try:
????from?_abc?import?(get_cache_token?_abc_init?_abc_register
??????????????????????_abc_instancecheck?_abc_subclasscheck?_get_dump
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1903264??2018-06-27?04:05??Python\DLLs\libcrypto-1_1.dll
?????文件?????408224??2018-06-27?04:05??Python\DLLs\libssl-1_1.dll
?????文件??????75809??2018-06-27?04:02??Python\DLLs\py.ico
?????文件??????78396??2018-06-27?04:02??Python\DLLs\pyc.ico
?????文件??????83351??2018-06-27?04:02??Python\DLLs\pyd.ico
?????文件?????168088??2018-06-27?04:07??Python\DLLs\pyexpat.pyd
?????文件?????155206??2018-06-27?04:11??Python\DLLs\python_lib.cat
?????文件??????25407??2018-06-27?04:12??Python\DLLs\python_tools.cat
?????文件??????23192??2018-06-27?04:07??Python\DLLs\select.pyd
?????文件?????948888??2018-06-27?04:08??Python\DLLs\sqlite3.dll
?????文件????1356448??2018-06-27?04:05??Python\DLLs\tcl86t.dll
?????文件????1207456??2018-06-27?04:05??Python\DLLs\tk86t.dll
?????文件????1065112??2018-06-27?04:08??Python\DLLs\unicodedata.pyd
?????文件??????24216??2018-06-27?04:08??Python\DLLs\winsound.pyd
?????文件??????54424??2018-06-27?04:07??Python\DLLs\_asyncio.pyd
?????文件??????72856??2018-06-27?04:08??Python\DLLs\_bz2.pyd
?????文件??????19608??2018-06-27?04:07??Python\DLLs\_contextvars.pyd
?????文件?????107672??2018-06-27?04:07??Python\DLLs\_ctypes.pyd
?????文件??????29848??2018-06-27?04:07??Python\DLLs\_ctypes_test.pyd
?????文件?????239768??2018-06-27?04:08??Python\DLLs\_decimal.pyd
?????文件??????21656??2018-06-27?04:07??Python\DLLs\_distutils_findvs.pyd
?????文件?????170136??2018-06-27?04:08??Python\DLLs\_elementtree.pyd
?????文件??????31896??2018-06-27?04:08??Python\DLLs\_hashlib.pyd
?????文件?????185496??2018-06-27?04:08??Python\DLLs\_lzma.pyd
?????文件??????33432??2018-06-27?04:08??Python\DLLs\_msi.pyd
?????文件??????25240??2018-06-27?04:07??Python\DLLs\_multiprocessing.pyd
?????文件??????35480??2018-06-27?04:08??Python\DLLs\_overlapped.pyd
?????文件??????24216??2018-06-27?04:08??Python\DLLs\_queue.pyd
?????文件??????66712??2018-06-27?04:08??Python\DLLs\_socket.pyd
?????文件??????66712??2018-06-27?04:08??Python\DLLs\_sqlite3.pyd
............此處省略4939個文件信息
評論
共有 條評論