用分数计算分数(有理数) https://cn.from-locals.com/python-fractions-usage/