Postorder: first, visit left child, then, parent, last, is to visit right child.The postorder traversal result of above tree is {4,6,5,2,3,1}.Key diff...
分类:
其他好文 时间:
2015-10-01 06:59:04
阅读次数:
195
只想简单地比较一下文本之间是否有变化,就可以函数defflib.context_diff来实现。例子:#python3.4.3
import difflib
text1 = ''' 1. Beautiful is better than ugly.
2. Explicit is better than implicit.
3. Simple is better than comp...
分类:
其他好文 时间:
2015-09-28 11:50:39
阅读次数:
433
http://sourceforge.net/p/cscope/bugs/247/buffer read only? cx cqHere is a simple patch which re-enables cscope to work with symlinks. Really you were ...
分类:
其他好文 时间:
2015-09-27 09:57:54
阅读次数:
209
创建新仓库 git init 检出仓库 件来人肉合并这些 冲突(conflicts) 了。改完之后,你需要执行如下命令以将它们标记为合并成功: git add <filename> 在合并改动之前,也可以使用如下命令查看: git diff <source...
分类:
其他好文 时间:
2015-09-25 18:54:43
阅读次数:
140
升级ios9后,ionic开发的app会报[$rootScope:infdig] 10 $digest() iterations reached. Aborting!的错误,加上一个patch就可以解决在index.html里引入jsapp.js里加入dependency'ngIOS9UIWebVi...
分类:
移动开发 时间:
2015-09-24 12:36:36
阅读次数:
1660
一.构造两个用于测试的文件hello.txt:world.txt:二.用diff命令比较两个文本文件的差异对这个两个文本文件执行diff‘命令,并通过输出重定向,将差异保存在diff.txt文件中$ diff -u hello.txt world.txt > diff.txt参数-u是使得差异输出中...
分类:
系统相关 时间:
2015-09-22 18:36:50
阅读次数:
215
git:分布式。开发者可以提交到本地,每个开发者机器上都是一个完整的数据库。两个开发者之间,可以通过打patch的方式交换文件。svn:集中式。所谓git服务器,是指大家约定使用同一个网址提交、更新代码。这个网址可以是任何一个开发机。git建立branch的速度更快,因为只保存增..
分类:
其他好文 时间:
2015-09-22 14:39:06
阅读次数:
200
打开.gitconfig文件,加入如下代码即可[diff] external = /Applications/AraxisMerge.app/Contents/Utilities/araxisgitdiff renames = true[mergetool "araxis"] ...
分类:
系统相关 时间:
2015-09-21 20:56:15
阅读次数:
1020
git config --global diff.tool vimdiffgit config --global difftool.prompt falsegit config --global alias.d difftool
分类:
系统相关 时间:
2015-09-20 22:21:01
阅读次数:
215
http://fancyxinyu.blog.163.com/blog/static/1823213662013719115245699/http://blog.chinaunix.net/uid-7589639-id-114113.htmlhttp://www.cnblogs.com/y04103...
分类:
其他好文 时间:
2015-09-19 16:31:52
阅读次数:
184