第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')
A
First line Second line
B
Replaced first line Second line
C
First line Replaced first line
D
Replaced first line
提交0次 正确率0.00%
答案解析