摘要: #coding:utf-8__author__ = 'similarface'class BinaryTree: def __init__(self): self.tree=EmptyNode() def __repr__(self): return repr... 阅读全文
posted @ 2016-01-13 22:50 similarface 阅读(265) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8__author__ = 'similarface'class KeyedBinaryTree: def __init__(self):self.tree=EmptyNode() def __repr__(self):return repr(self.tree)... 阅读全文
posted @ 2016-01-13 22:49 similarface 阅读(501) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8__author__ = 'similarface'class Graph: def __init__(self,label,extra=None): #节点是类实例 self.name=label #而图是由类实例链接而成 ... 阅读全文
posted @ 2016-01-13 22:48 similarface 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 面向对象的集合:#coding:utf-8__author__ = 'similarface'class Set: ''' list实现集合,及其集合操作 ''' def __init__(self,value=[]): self.data=[] ... 阅读全文
posted @ 2016-01-13 16:11 similarface 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 基本选择器//选择 id为 one 的元素 $('#btn1').click(function(){ $('#one').css("background","#bfa");});//选择 class 为 mini 的所有元素$('#btn2').click(function(){ $('.min... 阅读全文
posted @ 2016-01-13 14:11 similarface 阅读(321) 评论(0) 推荐(1) 编辑
摘要: 执行FLUSH TABLES语句 或者mysqladmin flush-tablescommand.mysql> flush tables allele;使用 myisamchk --keys-used=0 -rq /path/to/db/tbl_name 移除表的所有索引[root@face ~]... 阅读全文
posted @ 2016-01-13 14:06 similarface 阅读(665) 评论(0) 推荐(0) 编辑