mark下 import sys f=open('test.txt','a+') s= '123' abc= '456' print >> f, s,abc f.close() r 读 w 写 a 追加