質問するログイン新規登録

回答編集履歴

1

コード修正

2018/02/16 17:34

投稿

LouiS0616
LouiS0616

スコア35678

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/CHKvTBHyEIgqsiDd)
21
+ **実行結果** [Wandbox](https://wandbox.org/permlink/0B5VYCDvVe8wa7sx)
22
22
  ```Python
23
- ['nene01', '.py']
23
+ ['nene01', 'py']
24
- ['kou01', '.py']
24
+ ['kou01', 'py']
25
- ['kou02', '.py']
25
+ ['kou02', 'py']
26
- ['aoba02', '.py']
26
+ ['aoba02', 'py']
27
27
  ```