SEEK_SET or 0: seek from the start of the stream (the default); offset must either be a number returned by TextIOBase.tell(), or zero. Any other offset value produces undefined behaviour.
SEEK_CUR or 1: “seek” to the current position; offset must be zero, which is a no-operation (all other values are unsupported).
SEEK_END or 2: seek to the end of the stream; offset must be zero (all other values are unsupported).
在文本模式下} (派生自^{} )。他们关于{}的{a3}工作如下:
open
文件时,它返回的类似文件的对象是^{也就是说,您只能使用
whence
的1
和2
的offset
值相关问题 更多 >
编程相关推荐