摘要: 参考:http://www.cnblogs.com/alex3714/articles/5188179.html 阅读全文
posted @ 2018-02-25 23:47 耐烦不急 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 在python2中经典类是按照深度优先进行继承的,新式类是按照广度优先来进行继承的 在python3中经典类和新式类均是按照广度优先来继承的 参考:http://www.cnblogs.com/alex3714/articles/5188179.html 阅读全文
posted @ 2018-02-25 13:35 耐烦不急 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.cnblogs.com/alex3714/articles/5188179.html 阅读全文
posted @ 2018-02-25 12:36 耐烦不急 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.cnblogs.com/alex3714/articles/5188179.html #类变量的用途:大家共有的属性,节省内存 class Person(): cn='China' def __init__(self,name,age,addr,lifevalue=100 阅读全文
posted @ 2018-02-25 12:11 耐烦不急 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.cnblogs.com/alex3714/articles/5188179.html 阅读全文
posted @ 2018-02-25 11:10 耐烦不急 阅读(221) 评论(0) 推荐(0) 编辑