用zipfile,tarfile 详解见https://www.cnblogs.com/liangqihui/p/9219333.html 转载于:https://www.cnblogs.com/zhuyunbk/p/11375149.html