結果 : how to do code optimization in python