Первая публикация

This commit is contained in:
2021-10-11 20:46:24 +03:00
commit fa836cf16f
5 changed files with 7383 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import os
import zipfile
import csv
res = []
zips = os.listdir('Nintendo DS')
for z in zips:
with zipfile.ZipFile('Nintendo DS/'+z) as myzip:
info = myzip.infolist()
for i in info:
res.append([z, i.filename, int(i.file_size/(1024**2))])
with open('archive.csv', 'w', newline='') as f:
writer = csv.writer(f)
writer.writerows(res)