现在的位置: 首页 > 综合 > 正文

对文件操作seek时报错“can’t do nonzero end-relative seeks”

2018年04月02日 ⁄ 综合 ⁄ 共 329字 ⁄ 字号 评论关闭

In [63]: f.tell()
Out[63]: 1048611

In [64]:
In [64]:
In [64]: f.seek(3,2)
---------------------------------------------------------------------------
UnsupportedOperation                      Traceback (most recent call last)
<ipython-input-64-aa18fa7b01a3> in <module>()
----> 1 f.seek(3,2)

UnsupportedOperation: can't do nonzero end-relative seeks

待后续有时间再解决。

抱歉!评论已关闭.