1. 获取key对应的value. hash[key]. 有则返回对于的值; 没有的话就返回nil. months = {"1" => "January", "2" => "February"} puts months["1"] ...
確定! 回上一頁