python3读取文件最简单的办法

file = open('test.txt') #读文件
s = file.read() #把文件放到字符串里面
print(s) #输出字符串
原文地址:https://www.cnblogs.com/hh13579/p/13091222.html