摘要: 实现根据城市&课程机构过滤 实现点谁谁高亮,支持取交集. 直接上代码吧 本质上是过滤,多层过滤,取交集 org list.html 这部分 阅读全文
posted @ 2018-02-07 22:06 mmaotai 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 模块collections collections.namedtuple表示tuple 如表示一个坐标, t = (1,2), 搞不清楚. 如果这样就对了Point(x=1, y=2) 类的方法: __getitem__ 把实例当list来操作 类的方法: __len__方法用于丈量类的实例的长度 阅读全文
posted @ 2018-02-07 17:03 mmaotai 阅读(176) 评论(0) 推荐(0) 编辑