l = range(0,20)def f(x): if x%2 == 0: return Trueprint(list(filter(f,l)))#和python2的区别在于,要加一个list
贡献者
分享
程序员子朋
这家伙很懒,只想把你留下。
该资源仅限VIP专享下载