第14170题 单选题
执行给定的Python代码读取处理a.txt文件后,输出的结果是?

已知a.txt的文件内容为4行文本,分别为: 123456 12 67 987978

执行如下Python代码:

s=0
with open('a.txt') as f:
    a=f.readlines()
for i in a:
    if len(i)>3:
        s+=1
print(s)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析