結果 : how to edit previous line in python