Ruby 中例外的處理方式是靠begin-end block 的rescue 判斷並執行。 begin # 可能會發生例外的code rescue AExceptionClass => ...
確定! 回上一頁