题库 Python题库 题目列表 文件a.txt中的内容如图所示:执行如下Python代码,输...
单选题

文件a.txt中的内容如图所示:

执行如下Python代码,输出的结果是?( )
s=0
with open('a.txt') as f:
    a=f.readlines()
for i in a:
    if len(i)>3:
        s+=1
print(s)


A.

1

B.

2

C.

3

D.

4

题目信息
2023年 12月 选择题
0%
正确率
0
评论
101
点击