【#文档大全网# 导语】以下是®文档大全网的小编为您整理的《python代码示例》,欢迎阅读! #!/usr/bin/python def open_file(): lines = [] with open("file.txt", "r") as f: for line in f.readlines() lines.append(line.strip("\n")) return lines
本文来源:https://www.wddqxz.cn/26db279b7cd184254a353564.html