摘要:
https://stackoverflow.com/questions/6760685/creating-a-singleton-in-python 阅读全文
posted @ 2018-05-11 11:13
gqtc
阅读(142)
评论(0)
推荐(0)
摘要:
1:type() class type(object) class type(name, bases, dict) With one argument, return the type of an object. The return value is a type object. The isin 阅读全文
posted @ 2018-05-11 08:41
gqtc
阅读(186)
评论(0)
推荐(0)
摘要:
一:类也是对象 在理解元类之前,你需要先掌握Python中的类。Python中类的概念借鉴于Smalltalk,这显得有些奇特。在大多数编程语言中,类就是一组用来描述如何生成一个对象的代码段。在Python中这一点仍然成立: 但是,Python中的类还远不止如此。类同样也是一种对象。是的,没错,就是 阅读全文
posted @ 2018-05-11 08:26
gqtc
阅读(154)
评论(0)
推荐(0)

浙公网安备 33010602011771号