#JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 s = "13 LL 37 LL" arr = s.split("\n") arr.each_with_index do |line,index| arr = line.split("\t") puts '("' + arr.join('","') + '"),' end