96e40e3 b4f0c6f 96e40e3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os import zipfile def unzip(zip_file): zip_filename = zip_file target_dir = 'img' if not os.path.exists(target_dir): os.makedirs(target_dir) with zipfile.ZipFile(zip_filename, 'r') as zip_ref: zip_ref.extractall(target_dir)