結果 : how to get fraction as input in python