题库 Python题库 题目列表 运行下列程序,输出的结果是?( )lis1=["a&quo...
单选题

运行下列程序,输出的结果是?( )

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']

题目信息
2022年 6月 选择题
50%
正确率
0
评论
32
点击