zipfile.ZipFile

with zipfile.ZipFile('/Users/liujianing/Downloads/a.zip') as z:
for file in z.namelist():
z.extract(file, '/Users/liujianing/Downloads')
posted @ 2020-08-05 15:35  6+0  阅读(326)  评论(0编辑  收藏  举报