in在python中也是计算,是python中所有序列都支持的一种基础的的方便的运算。
====================================
a = '12345'
print '1' in a #=> True
a = (1,2,3,4)
print 1 in a #=> True
a = [1,2,3,4]
print 1 in a #=> True
a = {1:11, 2:22, 3:33}
print 1 in a #=> True (只能是索引,不能是内容,比如11 in a就会是False)
====================================