We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f2191a commit e86a926Copy full SHA for e86a926
1 file changed
python_base.py
@@ -98,7 +98,7 @@
98
99
#-- 集合frozenset,不可变对象
100
"""
101
- set是可变对象,即不存在hash值,不能作为字典的键值。同样的还有list、tuple等
+ set是可变对象,即不存在hash值,不能作为字典的键值。同样的还有list等(tuple是可以作为字典key的)
102
frozenset是不可变对象,即存在hash值,可作为字典的键值
103
frozenset对象没有add、remove等方法,但有union/intersection/difference等方法
104
0 commit comments