A22208. 执⾏以下Python代码后,输出的结果是?( )with open('test.txt', 'w') as f: f.write('Hello') with open('test.txt', 'a') as f: f.write('World') with open('test.txt','n') as f: print(f.read())
单选题
较难
知识点
题目描述
执⾏以下Python代码后,输出的结果是?( )
with open('test.txt', 'w') as f:
f.write('Hello')
with open('test.txt', 'a') as f:
f.write('World')
with open('test.txt','n') as f:
print(f.read())选项(单选)
答案解析
详细答案解析为会员权益,按每日次数查看。
开通 / 升级会员
上一题
下一题