回答編集履歴

2

修正

2019/01/06 09:47

投稿

asm
asm

スコア15147

test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  num = nums.to_i
18
18
 
19
- FileUtils.mv(fn, '%02d.jpg' % (num+1), verbose: true)
19
+ FileUtils.mv(fn, '%02d.jpg' % num, verbose: true)
20
20
 
21
21
  else
22
22
 

1

修正

2019/01/06 09:47

投稿

asm
asm

スコア15147

test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- ```rb
11
+ ```ruby
12
12
 
13
13
  Dir.glob('*.jpg').each{|fn|
14
14