资源简介
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 ...):
...
‘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).
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
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个文件信息
相关资源
- 数据结构与算法:Python语言实现课后
- 基于python的道路视频车道线检测
- win7,64位,python3.5.2下的安装包:nu
- 基于Python3 tkinterGUI界面实现读取本地
- Python实现购物评论文本情感分析操作
- Python中HHT(希尔伯特-黄变换)以及其
- Python 3.8.1 32位安装包.zip
- OpenCV+3计算机视觉++Python语言实现 高清
- matlab代码转换为python代码
- python实现hmm
- Python-GUI-PyQ5总概述.xmind
- 基于python实现的BS架构FTP服务器程序
- Networkx安装步骤及资源
- python深度学习-高清pdf-源码
- 嵩天 礼欣 黄天羽 著 Python语言程序
- Python3.8.0 官方中文帮助文档 API参考手
- Introduction to Computation and Programming Us
- 亚马逊电子书-Keras快速上手:基于P
- ROS系统上的python应用开发实践讲解与
- python 数据挖掘入门与实战 pdf+代码
- Python3.4 PyQt5 32位安装版PyQt5-5.5.1-gpl-
- 基于python3 tensorflow DBN_and_RNN的实现
- Fluent Python高清中文版
- python计算机视觉编程programming compute
- python调用dlib库实现简单的人脸识别
- Python-全唐诗分析程序
- Python-我是小诗姬全唐诗作为训练数据
- 基于python和pencv的车牌号码识别
- Python实现的GMM用于语音识别
- python+selenium+unittest自动化测试demo
评论
共有 条评论