結果 : how to improve performance of python code