在Python3中,下列选项中返回顺序列表lists=[1, 2, 3, 4, 5, 6, 7]中大于4的元素的是()
list(map(lambda x: x > 4, lists))
list(filter(lambda x: x > 4, lists))
[i for i in lists if i > 4]
lists[lists.index(4):]
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题