原因是在Ruby 中Array 不會去檢查 index 這個參數是否為 Integer ... ruby string 中的 #{} 比較特別,他會去讓裡面的物件呼叫 to_s 的方法(在 Object ...
確定! 回上一頁