if c_number.to_s.include?('十')
index = (c_number =~ /十/)
c_number = c_number.gsub('十', '') if !c_number[index-1].to_i==0 and !c_number[index+1].to_i==0
c_number = c_number.gsub('十', '1') if !c_number[index+1].to_i==0
c_number = c_number.gsub('十', '0') if !c_number[index-1].to_i==0
c_number = c_number.gsub('十', '10')
end
实在是看不懂,求帮忙