fileHandle = open ( 'test.txt', 'a' )
fileHandle.write ( ' Bottom line.' )
fileHandle.close()
转自: http://maincoolbo.iteye.com/blog/626655