#Chapter2# Built-in Data Structu

2018-04-29  本文已影响13人  Jacaranda2016

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

上一篇 下一篇

猜你喜欢

热点阅读