文件操作

  

 readline(): 一行一行读

readlines():返回一个列表,一行为一个元素

 seek()  :设置指针位置

tell(): 返回指针位置

其他:

    

with open("","") as f:    用法:

    

     调用的魔术方法:

原文地址:https://www.cnblogs.com/cxhzy/p/9863289.html