Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,伙计们,我该如何回报
fseek(fp, -1)
在蟒蛇。因此,在这样做之后,fileObject.read(2) 我想将读取头向后退一步
fileObject.read(2)
import os fileObject.seek(-1, os.SEEK_CUR)
有关该seek方法的更多信息,请参阅 Python 文档。
seek