python读取整个文本文件 写入文本文件 替换文本文件中的内容

import pickle def ReadAllContent(path): f = open(path,"r") txt = f.read() f.close() return txt def WriteAllContent(path, content): file = open(path,"w") file.write(content) file.close(
相关文章
相关标签/搜索