第18737题 单选
运行给定的Python筛选非元音字符程序,输出结果是?
lis1=["a","e","i","o","u"]
strword='hello world'
lis2=[]
for i in strword:
    if i not in lis1:
       lis2.append(i)
print(lis2)
A

['h', 'l', 'l', ' ', 'w', 'r', 'l', 'd']

B

['h', 'l', 'l', 'w', 'r', 'l', 'd']

C

['e', 'o', 'o']

D

['e', '', 'o', ' ', 'o']

程序运行统计
暂无判题统计