XiaoKL

Python.list

1. Fastest way to check if a value exist in a list

http://stackoverflow.com/questions/7571635/fastest-way-to-check-if-a-value-exist-in-a-list

 

7 in a

True: 7在list a中;False: 7不在list a中。

 

posted on 2015-02-26 20:52  XiaoKL  阅读(181)  评论(0编辑  收藏  举报

导航