結果 : how to reduce memory usage in python code