Election results in the London Borough of Sutton.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

13 行
211 B

  1. ward = ''
  2. electorate = ''
  3. ARGF.each do |line|
  4. if line[0,2] == '# '
  5. ward = line[2..-1].chomp
  6. elsif line[0,3] == '## '
  7. electorate = line[3..-1].chomp
  8. else
  9. puts [ ward, line ].join ','
  10. end
  11. end