1.Set
A set is an unordered collection of unique elements.
A set can be created in two ways:
In [133]: set([2, 2, 2, 1, 3, 3]) #via the set function
Out[133]: {1, 2, 3}
In[134]:{2,2,2,1,3,3}Out[134]: {1, 2, 3} #via a set literal with curly braces:

2. Namespace/variable scope_global or local
3. Lambda Funtions
4. itertools module


网友评论