no message
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# 不能通过索引访问元素
|
||||
# 自动去重
|
||||
# 元素必须是可哈希的(如 int, str, tuple),不能包含 list、dict、set 等可变类型
|
||||
set1 = {
|
||||
'中国','小日本','漂亮国','中国'
|
||||
}
|
||||
set2 = set(['中国','小日本','漂亮国'])
|
||||
print(set1)
|
||||
print(set2)
|
||||
Reference in New Issue
Block a user