编辑代码

text = "123206-29-1
 1024598-01-3
 12363-03-0
 129125-83-3
  1374248-77-7
 2044796-26-9
  21856-94-0
 2223537-97-9
 245117-32-2
 34689-46-8"

puts "\"" + text.split("\n").map{|line| line.strip}.join("\",\"") + "\""