收起
代码如下:{如果对你有帮助,可以给我个采纳吗,谢谢!! 点击我这个回答右上方的【采纳】按钮}。
with open(r'songs.txt','w') as f: f.write('难念的经\n') with open(r'songs.txt','a') as f: f.write("暗里着迷\nlet me down slowly") with open(r'songs.txt','r') as f: text = f.read() print(text)
报告相同问题?