文件的定位读写

seek函数

seek(offset,from)

offset:偏移量

from:方向

  0:表示文件开头

  1:表示当前位置

  2:表示文件末尾

 

 

tell() 告知当前的位置

posted @ 2018-08-18 20:48  zmwzmw  阅读(391)  评论(0编辑  收藏  举报