L1 = [
'你好'
,
'世界'
,
18
,
'苹果'
,
无
]
L2 = [s.lower()
for
s
in
L1
if
isinstance
(s,
str
)]
打印
(L2)
如果
L2 == [
'hello'
,
'world'
,
'apple'
]:
print
(
'测试通过!'
)
其他
:
print
(
'测试失败!'
)