第11645题 单选题
在Python中,使用with open语句打开文件并读取所有内容时,open函数第二个参数的正确取值是什么?

在Python中,打开文件并读取所有内容的代码示例如下:

with open('file.txt', ___) as f:
    content = f.read()
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析