資源簡介
python3.6 綠色版 自帶 request lxml了
代碼片段和文件信息
#?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?...):
????????????????...
????‘a(chǎn)bstractclassmethod‘?is?deprecated.?Use?‘classmethod‘?with
????‘a(chǎn)bstractmethod‘?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(...):
????????????????...
????‘a(chǎn)bstractstaticmethod‘?is?deprecated.?Use?‘staticmethod‘?with
????‘a(chǎn)bstractmethod‘?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)
????‘a(chǎn)bstractproperty‘?is?deprecated.?Use?‘property‘?with?‘a(chǎn)bstractmethod‘
????instead.
????“““
????__isabstractmethod__?=?True
class?ABCmeta(type):
????“““metaclass?for?defining?Abstract?base?Classes?(ABCs).
???
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????I.A....?????75809??2017-02-13?22:38??Python36\DLLs\py.ico
????I.A....?????78396??2017-02-13?22:38??Python36\DLLs\pyc.ico
????I.A....?????83351??2017-02-13?22:38??Python36\DLLs\pyd.ico
????I.A....????187544??2017-03-21?18:42??Python36\DLLs\pyexpat.pyd
????I.A....????154830??2017-03-21?18:47??Python36\DLLs\python_lib.cat
????I.A....?????25407??2017-03-21?18:49??Python36\DLLs\python_tools.cat
????I.A....?????26776??2017-03-21?18:42??Python36\DLLs\select.pyd
????I.A....???1124504??2017-03-21?18:42??Python36\DLLs\sqlite3.dll
????I.A....???1666048??2017-02-13?22:53??Python36\DLLs\tcl86t.dll
????I.A....???1967104??2017-02-13?22:54??Python36\DLLs\tk86t.dll
????I.A....????905880??2017-03-21?18:42??Python36\DLLs\unicodedata.pyd
????I.A....?????27800??2017-03-21?18:42??Python36\DLLs\winsound.pyd
????I.A....?????60056??2017-03-21?18:42??Python36\DLLs\_asyncio.pyd
????I.A....?????94360??2017-03-21?18:42??Python36\DLLs\_bz2.pyd
????I.A....????124568??2017-03-21?18:42??Python36\DLLs\_ctypes.pyd
????I.A....?????31384??2017-03-21?18:42??Python36\DLLs\_ctypes_test.pyd
????I.A....????267416??2017-03-21?18:42??Python36\DLLs\_decimal.pyd
????I.A....????162456??2017-03-21?18:42??Python36\DLLs\_elementtree.pyd
????I.A....???1450648??2017-03-21?18:44??Python36\DLLs\_hashlib.pyd
????I.A....????254104??2017-03-21?18:43??Python36\DLLs\_lzma.pyd
????I.A....?????38040??2017-03-21?18:42??Python36\DLLs\_msi.pyd
????I.A....?????29336??2017-03-21?18:42??Python36\DLLs\_multiprocessing.pyd
????I.A....?????42648??2017-03-21?18:42??Python36\DLLs\_overlapped.pyd
????I.A....?????72344??2017-03-21?18:43??Python36\DLLs\_socket.pyd
????I.A....?????85144??2017-03-21?18:42??Python36\DLLs\_sqlite3.pyd
????I.A....???1744024??2017-03-21?18:44??Python36\DLLs\_ssl.pyd
????I.A....?????51864??2017-03-21?18:42??Python36\DLLs\_testbuffer.pyd
????I.A....?????89240??2017-03-21?18:42??Python36\DLLs\_testcapi.pyd
????I.A....?????23704??2017-03-21?18:42??Python36\DLLs\_testconsole.pyd
????I.A....?????22168??2017-03-21?18:42??Python36\DLLs\_testimportmultiple.pyd
............此處省略6211個文件信息
評論
共有 條評論