用分數計算分數(有理數) https://tw.from-locals.com/python-fractions-usage/