区别于空字典 In [ 14 ]: s = set () In [ 15 ]: s Out [ 15 ]: set () In [ 16 ]: type ( s ) Out [ 16 ]: set In [ 17 ]: s = {} In [ 18 ]: type ( s ) Out [ 18 ]: dict In [ 19 ]: s Out [ 19 ]: {} 【文章转自印度服务器 http://www.55
区别于空字典
In [14]: s = set()In [15]: s
Out[15]: set()
In [16]: type(s)
Out[16]: set
In [17]: s = {}
In [18]: type(s)
Out[18]: dict
In [19]: s
Out[19]: {}