在Ruby 中的Hash 就類似JavaScript 中的Object,是key-value pairs。 ... hash.select{|k, v| v > 10} # 篩選filter hash 中的內容
確定! 回上一頁