質問編集履歴
1
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -83,3 +83,31 @@
|
|
83
83
|
|
84
84
|
|
85
85
|
```
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
### 追記
|
90
|
+
|
91
|
+
```python
|
92
|
+
|
93
|
+
import zipfile, os
|
94
|
+
|
95
|
+
myfile =[]
|
96
|
+
|
97
|
+
for filename in os.listdir('.'):
|
98
|
+
|
99
|
+
if filename.endswith('.zip'):
|
100
|
+
|
101
|
+
myfile.append(filename)
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
for filename in myfile:
|
106
|
+
|
107
|
+
myfile_obj = zipfile.ZipFile(filename)
|
108
|
+
|
109
|
+
myfile_obj.extractall(pwd='rabbit'.encode('ascii'))
|
110
|
+
|
111
|
+
myfile_obj.close
|
112
|
+
|
113
|
+
```
|