A37304. 小张近阶段要学习的英文单词存储在“data.txt”文件, 格式如图所示。处理“data.txt”文件中英文单词的 Python 程序段如下:file = open("data.txt")for word in file: if word[0:1] == "c": continue else: print(word)file.close()下列关于该程序段的功能,说法正确的是? ( )
单选题
困难
知识点
题目描述
小张近阶段要学习的英文单词存储在“data.txt”文件, 格式如图所示。

处理“data.txt”文件中英文单词的 Python 程序段如下:
file = open("data.txt")
for word in file:
if word[0:1] == "c":
continue
else:
print(word)
file.close()
下列关于该程序段的功能,说法正确的是? ( )
选项(单选)
答案解析
详细答案解析为会员权益,按每日次数查看。
开通 / 升级会员
上一题
下一题