资源简介
不需要安装,包括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个文件信息
相关资源
- simplecv实用机器视觉+OpenCV-Python-Totur
- 冲顶大会/芝士超人/花椒直播...答题助
- Serial assistant.rar
- Python金融大数据分析 完整.pdf版
- 《Python3程序开发指南 Programming in Py
- Introduction to Machine Learning with Python_正
- PYTHON数据可视化编程实战PDF
- python3.4+pywin32 32位
- 深入浅出Python(中文版)
- 阿里云大学马哥python资料.zip
- opencv_python-4.1.2-cp37-cp37m-win_amd64.whl
- Selenium 2自动化测试实战 基于Python语言
- python实现飞机大战
- opencv-python 3.4.3.18
- python开发键盘钢琴源代码及打包程序
- tensorflow-1.10.0-cp27-cp27m-win_amd64.whl
- 黑马程序员Python入门教程讲义及源码
- opencv_python-3.4.2-cp36-cp36m-win_amd64.whl
- Python核心编程(第三版) mobi
- Python深度学习和源代码
- python-3.7.3-amd64.exe 安装包
- 《Python编程 从入门到实践》中文pdf高
- python 2.7-64位_numpy+mkl
- pypy windows 最新版 v5.8.0
- Python编程快速上手 pdf+源码
- python项目-face++人脸识别考勤机-pytho
- 简单教务系统.7z
- 利用python数据分析第二版-中文版&英文
- Python-3.6.2.tgz
- python实现车牌识别
评论
共有 条评论