2. 請設計一個函式來計算兩個浮點數(float)的比值,float ratio(float a, float b),其中程式 中必須使用例外處理(exception handling)來防止分母為零(divided by zero)的問題產生。