結果 : how to write a text editor in python