2018年8月30日
摘要: >>> class P:pass ... >>> type(P) <class 'type'> >>> p = P() >>> type(p) <class '__main__.P'> P 是一个模板(模具),实例是通过这个模板(模具), 添加了不同的初始化参数生产出来的具体产品, 可以有多个,且每 阅读全文
posted @ 2018-08-30 18:13 淡淡的风景 阅读(225) 评论(0) 推荐(0) 编辑