返回顶部

收藏

Reading the newly created file.

更多
print '\nReading the newly created file.'
text_file = open('write_it.txt', 'r')
print text_file.read()
text_file.close()

标签:Python,File

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-08-19 15:55:27Working with File Objects by Solon.Ring
  2. 2016-09-03 14:35:51Writing to Files by 西国の海妖
  3. 2016-10-19 11:28:30Reads a single line from the file by 蟋蟀MM
  4. 2016-11-11 12:56:44tell(): Returns the current file position by 西国の海妖
  5. 2016-03-26 20:56:22Reading Everything: read the whole file in one go by 风云轩
  6. 2016-05-30 16:40:50Reading a binary File by 西国の海妖
  7. 2016-08-19 16:12:51File Random Access by 张宋付
  8. 2016-09-20 18:13:43Use seek() to move file pointer by 大猪
  9. 2016-10-04 12:15:46Write string to a file by 司马
  10. 2016-11-20 11:31:44Close a file by xwz
  11. 2016-02-11 11:05:41Loop through a file by jack.chen

发表评论