📅  最后修改于: 2022-03-11 14:45:04.759000             🧑  作者: Mango
num = int(input('Type numerator'))
dem = int(input('Type denominator'))
a = num // dem
b = num % dem
print 'The mixed number is {} and {}/{}'.format(a, b, dem)