第12175题 单选题
执行给定的Python文件操作代码后,file.txt文件的内容是什么?
with open('file.txt', 'w') as f:
    f.write('First line\n')
with open('file.txt', 'a') as f:
    f.write('Second line\n')
with open('file.txt', 'r+') as f:
    f.seek(0)
    f.write('Replaced first line\n')
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析