返回顶部

收藏

Reading the entire file at once

更多
print '\nReading the entire file at once.'
text_file = open('read_it.txt', 'r')
whole_thing = text_file.read()
print whole_thing
text_file.close()

标签:Python,File

收藏

0人收藏

支持

0

反对

0

发表评论