from fractions import Fraction value = 4.2 print(Fraction(value).limit_denominator())
原文地址:https://www.cnblogs.com/sea-stream/p/9966066.html
时间: 2024-10-19 09:32:40
from fractions import Fraction value = 4.2 print(Fraction(value).limit_denominator())
原文地址:https://www.cnblogs.com/sea-stream/p/9966066.html