本文共 179 字,大约阅读时间需要 1 分钟。
类作为对象
在大多数语言中,类只是描述如何产生对象的代码段。在Python中也是如此:
>>> class ObjectCreator(object):... pass...>>> my_object = ObjectCreator(
转载地址:http://eabtf.baihongyu.com/