📅  最后修改于: 2022-03-11 14:44:56.319000             🧑  作者: Mango
pip install patool
import patoolib
#case 1 specific output path
patoolib.extract_archive("filename.rar", outdir="outputpath")
#case 2 current working directory
patoolib.extract_archive("filename.rar")