摘要:
1,目录处理 >>> os.getcwd() #current working directory'/home/jerry'>>> os.path.realpath("/home/jerry/GitHub") #如果是symbolic link就找到真实文件'/home/jerry/GitHub'>>> os.path.relpath("/home/jerry/GitHub") ... 阅读全文
摘要:
diff是基于行的比较。diff的输出有两种,一种给人看的,另一种给patch命令看的。 1,给人看的diff输出 1,-y, output in two column jerry@JerryOnVbox:~/workspace$ diff -y a.txt b.txtif a = b: if a = b: output = a.toString() output... 阅读全文