結果 : how to optimize python code for performance