📌  相关文章
📜  读取所有文本文件 python 代码示例

📅  最后修改于: 2022-03-11 14:47:01.704000             🧑  作者: Mango

代码示例1
# 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()