no message

This commit is contained in:
陈银军
2025-12-08 17:24:51 +08:00
parent f43596e643
commit 26e9a5d2c4
2 changed files with 0 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
# 不能通过索引访问元素
# 自动去重
# 元素必须是可哈希的(如 int, str, tuple),不能包含 list、dict、set 等可变类型
set1 = {
'中国','小日本','漂亮国','中国'
}
set2 = set(['中国','小日本','漂亮国'])
print(set1)
print(set2)