一.tar打包备份工具 1.命令功能 tar 将多个文件或目录打包在一起,可用通过调用gzip或zip实现压缩.解压的命令:tar不仅可以多多个文件进行打包,还可以对多个文件打包后进行压缩. 2.语法格式 tar option file tar 选项 文件或目录 选项说明 选项选项 选项选项说明 c 创建新的tar包 * v 显示详细tar执行过程* f 指定压缩的文件名字* t 不解压查看tar包的内容* p 保持文件的原有属性* j 通过bzip2命令压缩或解压* z 通过gzi…
HOWTO: Unpack, Edit, and Repack Boot Images http://forum.xda-developers.com/showthread.php?t=443994 Several people have already figured out the details on their own, but I have gotten requests to do a more comprehensive tutorial on how the boot and r…
定义:zip([iterable, …])zip()是Python的一个内建函数,它接受一系列可迭代的对象作为参数,将对象中对应的元素打包成一个个tuple(元组),然后返回由这些tuples组成的list(列表).若传入参数的长度不等,则返回list的长度和参数中长度最短的对象相同.利用*号操作符,可以将list unzip(解压),看下面的例子就明白了: >>> a = [1,2,3,4] >>> b = [5,6,7,8] >>> c = [5,…
reprinted:http://www.cnblogs.com/beginman/archive/2013/03/14/2959447.html A. code talk is cheap ,show you the code first: 1 >>> name=('jack','beginman','sony','pcky') 2 >>> age=(2001,2003,2005,2000) 3 >>> for a,n in zip(name,age…