随笔分类 -  python

摘要:new实验实验1实验2应用:实现单例 new This method is only used for new-style classes (classes inheriting from object). Called to create a new instance of class cls. new is a static method (special-cased so you ne... 阅读全文
posted @ 2016-07-03 10:37 .Lippman 阅读(100) 评论(0) 推荐(0)
摘要:super场景测试1:测试2<!--more-->测试3 :实验代码!/usr/bin/env pythonencoding: utf-8 super super(type[, object-or-type]) # object-or-type must be instance of type Re 阅读全文
posted @ 2016-07-03 10:06 .Lippman 阅读(149) 评论(0) 推荐(0)