no message

This commit is contained in:
yinjun.chen1
2026-05-14 17:49:08 +08:00
parent 4085f0f6ca
commit 047af26d70
8 changed files with 1 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
A = {1, 2}
B = {1, 2, 3, 4}
print(A.issubset(B)) # A是B的子集
print(B.issuperset(A)) # B是A的超级
print(A.isdisjoint(B)) # A 和 B 有交集;若无交集则返回 True