📅  最后修改于: 2022-03-11 14:46:41.428000             🧑  作者: Mango
# Open a file: file
file = open('my_text_file',mode='r')
# read all lines at once
all_of_it = file.read()
# close the file
file.close()