no message

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