文本文件的读取操作

  1. read( )函数
  2. readline( ) 函数
  3. readlines( ) 函数
  4. 从文件members.txt中以字典形式读取数据,名字作为键,年龄作为值。文件中的内容如下,以制表符('\t')分隔数据