資源簡介
用原版python3.6.8_x86安裝后精簡而成。并添加了綠色補丁。可正常使用pip工具。
使用時解壓到任意非中文目錄,運行python_cmd.bat即可,無需設置環境變量。
代碼片段和文件信息
#?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??2019-06-06?11:12??DLLs\
?????文件???????75809??2018-12-23?23:27??DLLs\py.ico
?????文件???????78396??2018-12-23?23:27??DLLs\pyc.ico
?????文件???????83351??2018-12-23?23:27??DLLs\pyd.ico
?????文件??????166416??2018-12-23?23:32??DLLs\pyexpat.pyd
?????文件??????153939??2018-12-23?23:37??DLLs\python_lib.cat
?????文件???????25456??2018-12-23?23:38??DLLs\python_tools.cat
?????文件???????23056??2018-12-23?23:31??DLLs\select.pyd
?????文件??????924176??2018-12-23?23:32??DLLs\sqlite3.dll
?????文件??????897552??2018-12-23?23:32??DLLs\unicodedata.pyd
?????文件???????24080??2018-12-23?23:31??DLLs\winsound.pyd
?????文件???????46096??2018-12-23?23:31??DLLs\_asyncio.pyd
?????文件???????72720??2018-12-23?23:32??DLLs\_bz2.pyd
?????文件??????107024??2018-12-23?23:31??DLLs\_ctypes.pyd
?????文件??????225296??2018-12-23?23:31??DLLs\_decimal.pyd
?????文件???????21520??2018-12-23?23:32??DLLs\_distutils_findvs.pyd
?????文件??????169488??2018-12-23?23:32??DLLs\_elementtree.pyd
?????文件?????1181200??2018-12-23?23:33??DLLs\_hashlib.pyd
?????文件??????184848??2018-12-23?23:32??DLLs\_lzma.pyd
?????文件???????32784??2018-12-23?23:32??DLLs\_msi.pyd
?????文件???????25104??2018-12-23?23:31??DLLs\_multiprocessing.pyd
?????文件???????34320??2018-12-23?23:31??DLLs\_overlapped.pyd
?????文件???????62992??2018-12-23?23:32??DLLs\_socket.pyd
?????文件???????65552??2018-12-23?23:32??DLLs\_sqlite3.pyd
?????文件?????1548304??2018-12-23?23:33??DLLs\_ssl.pyd
?????目錄???????????0??2019-06-06?11:12??include\
?????文件???????48828??2018-12-23?23:27??include\abstract.h
?????文件????????1053??2018-12-23?23:27??include\accu.h
?????文件????????1259??2018-12-23?23:27??include\asdl.h
?????文件?????????499??2018-12-23?23:27??include\ast.h
?????文件?????????824??2018-12-23?23:27??include\bitset.h
............此處省略1987個文件信息
評論
共有 條評論