第26289题 判断题
判断:若文件log.txt已存在,执行给定Python代码后文件内容被清空,仅保留New log entry的说法是否正确
with open("log.txt", "w") as f:
    f.write("New log entry")
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析