is True, is string, is dict a = [1,2,3,4] ; if 2 in a:print 'yes' 转载于:https://www.cnblogs.com/doudou816/p/3683243.html