python 读取 txt;python 写入 txt; python 读取文本; python 写入文本; with open('data.txt',"r") as f: str = f.read()with open("douban.txt","w") as f: f.write("这是个测试!")