file seek

seek( offset[, whence])
offset: 位移量
whence: 從哪個位置

  • 0 - absolute file positioning
  • 1 - seek relative to the current position
  • 2 - seek relative to the file's end
Reference: Python file object

沒有留言:

張貼留言