执行以下Python代码后,文件output.txt中的内容是什么?( )
with open('output.txt', 'w') as f:
f.write('Line1\n')
f.write('Line2')
with open('output.txt', 'a') as f:
f.write('\nLine3')
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析