文件写操作 追加模式:a 追加在文章的尾部 a.txt文件内容:aaa file_object = open(r'd:\a.txt','a') file_object.write('999') a.txt文件内容是:aaa999 其他: file_object = open(r'd:\a.txt'