📜  如何在 python 代码示例中再次读取文件

📅  最后修改于: 2022-03-11 14:47:21.295000             🧑  作者: Mango

代码示例1
with open(...) as fin:
    fin.read()   # read first time
    fin.seek(0)  # offset of 0
    fin.read()   # read again