txt ", "a+") as f: 2. print(f.read()). 3. f.write("\nadd new line"). 4. f.seek(0) # 将开始读的位置从写入的最后位置调到开头. 5. print(f.read()). 6.
確定! 回上一頁