Fraction问题求助
Fraction这段代码为什么两次反馈不一样啊from fractions import Fraction
Fraction(1708227363155544,4636617128565048)
Fraction(7, 19)
from fractions import Fraction
Fraction(1708227363155544/4636617128565048)
Fraction(6636883661388099, 18014398509481984) 同问同问~ 同问,谢谢 Fraction(1708227363155544/4636617128565048) 是相当于 Fraction(0.3684210526315789)
>>> Fraction(0.3684210526315789)
Fraction(6636883661388099, 18014398509481984)
页:
[1]