克里斯在铁路上跑
file = File.new("urls.txt", "r")count = 1while line = file.gets arr = line.split("/") imgName = arr[arr.length - 1].chomp if File.exist?(imgName) File.rename(imgName, "#{count}.jpg") end count = count + 1end
Post a Comment
0 comments:
Post a Comment