
Python
文章平均质量分 55
chenyingko
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python __call__ 内置函数的使用以及在OpenStack中的用法
对象通过提供__call__(slef, [,*args [,**kwargs]])方法可以模拟函数的行为,如果一个对象x提供了该方法,就可以像函数一样使用它,也就是说x(arg1, arg2...) 等同于调用x.__call__(self, arg1, arg2) 。 class DistanceForm(object): def __init__(self, orig...原创 2015-08-06 14:57:59 · 196 阅读 · 0 评论 -
[转]深刻理解Python中的元类(metaclass)
深刻理解Python中的元类(metaclass)http://blog.jobbole.com/21351/原创 2015-09-06 16:14:58 · 147 阅读 · 0 评论 -
pip命令报错 Bad md5 hash for package xxx
pip命令报错 Bad md5 hash for package xxx Downloading pysaml2-3.0.0.tar.gz (13.1MB)2015-09-07 02:53:46.775 | Hash of the package https://pypi.python.org/packages/source/p/pysaml2/pysaml2-3.0.0.tar....原创 2015-09-07 10:59:24 · 350 阅读 · 0 评论