【发布时间】:2021-10-21 11:27:32
【问题描述】:
def result_p3(high, low)
arr_ind = []
((1..31).each { |n| arr_ind << n })
(0..30).each do |i|
puts " #{arr_ind[i]}" + " #{'+' * high[i].to_i} ".red + "#{high[i].to_i}C "
puts " #{arr_ind[i]}" + " #{'+' * low[i].to_i} ".blue + "#{low[i].to_i}C "
end
end
【问题讨论】: