結果 : how to save log file in python