from fractions import Fraction
a=input('')#设这里输入3
print(Fraction(1,a))
报错:TypeError: both arguments should be Rational instances
有没有大佬知道解决方法?
from fractions import Fraction
a=input('')#设这里输入3
print(Fraction(1,a))
报错:TypeError: both arguments should be Rational instances
有没有大佬知道解决方法?