回答編集履歴
2
誤字の修正2
answer
CHANGED
@@ -4,5 +4,5 @@
|
|
4
4
|
for f in files:
|
5
5
|
ftitle, fext = os.path.splitext(f)
|
6
6
|
new_name = ftitle.replace('.jpg', '') + fext
|
7
|
-
# os.rename(f, ftitle.
|
7
|
+
# os.rename(f, ftitle.replace('.jpg', '') + fext)
|
8
8
|
```
|
1
誤字の修正
answer
CHANGED
@@ -3,6 +3,6 @@
|
|
3
3
|
```Python
|
4
4
|
for f in files:
|
5
5
|
ftitle, fext = os.path.splitext(f)
|
6
|
-
new_name = ftitle.
|
6
|
+
new_name = ftitle.replace('.jpg', '') + fext
|
7
7
|
# os.rename(f, ftitle.rename('.jpg', '') + fext)
|
8
8
|
```
|