🌈 搜索
📅  最后修改于: 2022-03-11 14:47:22.641000             🧑  作者: Mango
text_file = open("filename.dat", "r") lines = text_file.readlines() print lines print len(lines) text_file.close()