测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A40332. 数据文件“abc.txt” 中包含若干个英文单词, 如图所示:读取文件“abc.txt” 中数据的 Python 程序段如下:file = 'abc.txt'word_b = []for word in open(file): if word[0:1] = = 'a' and len(word)>4: word_b.append(word)该程序段执行后, 列表 word_b 中的数据为? ( )

单选题 困难

题目描述

数据文件“abc.txt” 中包含若干个英文单词, 如图所示:

读取文件“abc.txt” 中数据的 Python 程序段如下:

file = 'abc.txt'

word_b = []

for word in open(file):

        if word[0:1] = = 'a' and len(word)>4:

                word_b.append(word)

该程序段执行后, 列表 word_b 中的数据为? ( )

选项(单选)

上一题 下一题