美文网首页
#Chapter2# Built-in Data Structu

#Chapter2# Built-in Data Structu

作者: Jacaranda2016 | 来源:发表于2018-04-29 21:25 被阅读13次

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

相关文章

网友评论

      本文标题:#Chapter2# Built-in Data Structu

      本文链接:https://www.haomeiwen.com/subject/kcdalftx.html