回答編集履歴
1
コード修正
answer
CHANGED
@@ -12,16 +12,16 @@
|
|
12
12
|
|
13
13
|
files = [Path(f) for f in l[0]]
|
14
14
|
files = [
|
15
|
-
[f.stem, f.suffix] for f in files
|
15
|
+
[f.stem, f.suffix[1:]] for f in files
|
16
16
|
]
|
17
17
|
|
18
18
|
print(*files, sep='\n')
|
19
19
|
```
|
20
20
|
|
21
|
-
**実行結果** [Wandbox](https://wandbox.org/permlink/
|
21
|
+
**実行結果** [Wandbox](https://wandbox.org/permlink/0B5VYCDvVe8wa7sx)
|
22
22
|
```Python
|
23
|
-
['nene01', '
|
23
|
+
['nene01', 'py']
|
24
|
-
['kou01', '
|
24
|
+
['kou01', 'py']
|
25
|
-
['kou02', '
|
25
|
+
['kou02', 'py']
|
26
|
-
['aoba02', '
|
26
|
+
['aoba02', 'py']
|
27
27
|
```
|