资源简介
从官网下载的Windows x86-64 MSI installer安装之后的文件,压缩zip后的压缩包
代码片段和文件信息
# Copyright 2007 Google Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
“““Abstract base Classes (ABCs) according to PEP 3119.“““
import types
from _weakrefset import WeakSet
# Instance of old-style class
class _C: pass
_InstanceType = type(_C())
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 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)
“““
__isabstractmethod__ = True
class ABCmeta(type):
“““metaclass for defining Abstract base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed
directly and then acts as a mix-in class. You can also register
unrelated concrete classes (even built-in classes) and unrelated
ABCs as ‘virtual subclasses‘ -- these and their descendants will
be considered subclasses of the registering ABC by the built-in
issubclass() function but the registering ABC won‘t show up in
their MRO (Method Resolution Order) nor will method
implementations defined by the registering ABC be callable (not
even via super()).
“““
# A global counter that is incremented each time a class is
# registered as a virtual subclass of anything. It forces the
# negative cache to be cleared before its next use.
_abc_invalidation_counter = 0
def __new__(mcls name bases namespace):
cls = super(ABCmeta mcls).__new__(mcls name bases namespace)
# Compute set of abstract method names
abstracts = set(name
for name value in namespace.items()
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-03 16:55 Python27\
目录 0 2019-03-03 16:55 Python27\DLLs\
文件 80384 2011-06-12 14:24 Python27\DLLs\bz2.pyd
文件 19790 2011-03-08 09:45 Python27\DLLs\py.ico
文件 19790 2011-03-08 09:45 Python27\DLLs\pyc.ico
文件 163840 2011-06-12 14:24 Python27\DLLs\pyexpat.pyd
文件 10752 2011-06-12 14:24 Python27\DLLs\select.pyd
文件 535040 2011-06-12 14:24 Python27\DLLs\sqlite3.dll
文件 1172992 2010-08-28 14:51 Python27\DLLs\tcl85.dll
文件 9728 2010-08-28 14:51 Python27\DLLs\tclpip85.dll
文件 1759232 2010-08-28 15:07 Python27\DLLs\tk85.dll
文件 689664 2011-06-12 14:24 Python27\DLLs\unicodedata.pyd
文件 10240 2011-06-12 14:24 Python27\DLLs\winsound.pyd
文件 1281536 2011-06-12 14:26 Python27\DLLs\_bsddb.pyd
文件 111616 2011-06-12 14:24 Python27\DLLs\_ctypes.pyd
文件 15360 2011-06-12 14:24 Python27\DLLs\_ctypes_test.pyd
文件 166400 2011-06-12 14:24 Python27\DLLs\_elementtree.pyd
文件 471552 2011-06-12 14:24 Python27\DLLs\_hashlib.pyd
文件 61952 2011-06-12 14:24 Python27\DLLs\_msi.pyd
文件 31744 2011-06-12 14:24 Python27\DLLs\_multiprocessing.pyd
文件 46080 2011-06-12 14:24 Python27\DLLs\_socket.pyd
文件 58368 2011-06-12 14:24 Python27\DLLs\_sqlite3.pyd
文件 1167360 2011-06-12 14:26 Python27\DLLs\_ssl.pyd
文件 36864 2011-06-12 14:24 Python27\DLLs\_testcapi.pyd
文件 41472 2011-06-12 14:24 Python27\DLLs\_tkinter.pyd
目录 0 2019-03-03 16:55 Python27\Doc\
文件 5858915 2011-06-12 14:29 Python27\Doc\python272.chm
目录 0 2019-03-03 16:55 Python27\include\
文件 46411 2011-05-30 05:54 Python27\include\abstract.h
文件 1144 2011-03-08 09:46 Python27\include\asdl.h
文件 243 2011-03-08 09:46 Python27\include\ast.h
............此处省略3164个文件信息
相关资源
- python3.7.3-官方文档指南中文
- Mastering Python Networking 2nd Edition
- Learning Jupyter 5 2nd Edition
- Python数据处理 中文完整清晰版 PDF
- Python金融大数据分析.源码.py4fi-maste
- python网络爬虫电子书
- python-3.1.1.msi
- Python机器学习基础教程(完整高清
- Learning Python 5th Edition.pdf
- 流畅的python中文版高清完整版mobi
- Python项目开发实战第2版带书签超清
- deep learning with python 中文版的
- 卷积神经网络预测
- Automate the Boring Stuff with Python 原版PD
- python2.7 32位
- 精通Python自然语言处理
- Python深度学习(中文版) 超清带书签
- 人脸识别python实现源码功能丰富
- Python机器学习
- numpy-1.17.4-cp38-cp38-win_amd64.whl
- 源码python数据挖掘入门与实践源码
- Python数据科学手册(PDF)
- Python测试驱动开发:使用Django、Sele
- Python Data Analytics 无水印pdf 0分
- Deep Learning with Applications Using Python C
- 信用风险建模:理论基础、诊断工具
- Python编程导论(第2版).rar
- 图灵书籍(Python数据处理.pdf+代码)
- Python爬虫抓取东方财富网股票数据并
- Grokking Deep Learning 正式版pdf
评论
共有 条评论