📜  如何在python代码示例中读取文件

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

代码示例6
# How to read, and print to the screen a file in python!

f = open('fileName', 'r')
print(f.read())
f.close()

# Where "fileName" is obviously the name of your file that you want to read.