python3 flush()
f = open("foo.txt",'w+')
f.write('111')
f.flush()
# f.close()
# f = open("foo.txt",'r+')
fr=f.read()
print (fr)
python3 好像flush()没有起到效果,只能关闭后再打开再读取,好伤脑筋f = open("foo.txt",'w+')
f.write('111')
f.flush()
# f.close()
# f = open("foo.txt",'r+')
fr=f.read()
print (fr)
python3 好像flush()没有起到效果,只能关闭后再打开再读取,好伤脑筋2016-09-18
举报