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(
相關文章
相關標籤/搜索