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

A50822. content.txt 中的内容为字符串“happy birthday”,则下方代码段运行后,输出的结果是( )with open('content.txt','r') as f: for i in f.read(): if i == 'y': continue print(i,end='')

单选题 较易

题目描述

content.txt 中的内容为字符串“happy birthday”,则下方代码段运行后,输出的结果是( )

with open('content.txt','r') as f:

for i in f.read():

if i == 'y':

continue

print(i,end='')


选项(单选)

上一题 下一题