第28080题 单选题
下列关于Python读取文本文件的代码描述正确的是?

已知当前工作目录下存在文本文件test.txt,其存储内容为两行:第一行hello,第二行python,两行通过换行符分隔。

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析