系統大全為您提供解決辦法一,利用pyton來處理1.viuzip文件2.復制一下內容(Python)#!/usr/bin/envpython#-*-coding:utf-8-*-#uzip.pyimportosimportsysimportzipfileprint"ProcessingFile"+sys.argv[1]file=zipfile.ZipFile(sys.argv[1],"r");fornameinfile.namelist():utf8name=name.decode('gbk')print"Extracting"+utf8namepathname=os.path.dirname(utf8name)ifnotos.path.exists(pathname)andpathname!="":os.makedirs(pathname)data=file.read(name)ifnotos.path.exists(utf8name):fo=open(utf8name,"w")fo.write(data)fo.closefile.close()3.chmod+xuzip4../uzipxxxx.zip方法2,通過unzip行命令解壓,指定字符集unzip-OCP936xxx.zip(用GBK,GB18030也可以)有趣的是unzip的manual中并無這個選項的說明,unzip–help對這個參數有一行簡單的說明。方法3,在環境變量中,指定unzip參數,總是以指定的字符集顯示和解壓文件/etc/environment中加入2行UNZIP=”-OCP936″ZIPINFO=”-OCP936″方法4,采用java的jar命令解壓zip包JAR解壓jarxvffile.name?以上就是系統大全給大家介紹的如何使的方法都有一定的了解了吧,好了,如果大家還想了解更多的資訊,那就趕緊點擊系統大全官網吧。本文來自系統大全http:///如需轉載請注明!推薦:win7純凈版