fp=open('hehe.txt','w') print('呵呵',file=fp) fp.close()