set2={1,2,3}set2.add(5)=set2.remove(1)=set2.discard(1)=len(set2)=2 in set2=2 not in set2=set6=set2.copy(); set6=set2.clear();set2=
set2={1,2,3}set2.add(5)=set2.remove(1)=set2.discard(1)=len(set2)=2 in set2=2 not in set2=set6=set2.copy(); set6=set2.clear();set2=
set1 = {1, 2, 3} set2 = set1.copy() set3 =set1 set4=set(set1) 针对以上程序,当对set1进行修改时,以下说法正确的是()。 A: set2发生改变 B: set3发生改变 C: set4发生改变 D: set2 , set3和set4都发生改变
set1 = {1, 2, 3} set2 = set1.copy() set3 =set1 set4=set(set1) 针对以上程序,当对set1进行修改时,以下说法正确的是()。 A: set2发生改变 B: set3发生改变 C: set4发生改变 D: set2 , set3和set4都发生改变
下面代码的运行结果为 set1 = {1, 3, 9} set2 = {2, 4, 8, 9} set1.difference(set2)
下面代码的运行结果为 set1 = {1, 3, 9} set2 = {2, 4, 8, 9} set1.difference(set2)
set1={1,2,3,7,8}set2={2,3,4,5,6}set1|set2的结果是( )set1&set2的结果是( )set1^set2的结果是( )
set1={1,2,3,7,8}set2={2,3,4,5,6}set1|set2的结果是( )set1&set2的结果是( )set1^set2的结果是( )
redis中,sinter set1 set2能执行什么操作 A: set1与set2的并集操作 B: set1与set2的差集操作 C: set1与set2的交集操作 D: set1与set2的异或集
redis中,sinter set1 set2能执行什么操作 A: set1与set2的并集操作 B: set1与set2的差集操作 C: set1与set2的交集操作 D: set1与set2的异或集
对于两个集合对象set1,set2 则执行set1>=set2的判断,含义是() A: 测试是否set1是set2的子集 B: 测试是否set1是set2的超集 C: 判断是否set1的元素个数比set2的多 D: 判断是否set1的元素值比set2的大
对于两个集合对象set1,set2 则执行set1>=set2的判断,含义是() A: 测试是否set1是set2的子集 B: 测试是否set1是set2的超集 C: 判断是否set1的元素个数比set2的多 D: 判断是否set1的元素值比set2的大
set1 = {1,2,3} set2 = {2,3,4} set1和set2的交集是? A: {1,2,3} B: {2,3,4} C: {1,2,3,4} D: {2,3}
set1 = {1,2,3} set2 = {2,3,4} set1和set2的交集是? A: {1,2,3} B: {2,3,4} C: {1,2,3,4} D: {2,3}
set1 = {1,2,3} set2 = {2,3,4} set1和set2的并集是? A: {1,2,3} B: {2,3,4} C: {1,2,3,4} D: {2,3}
set1 = {1,2,3} set2 = {2,3,4} set1和set2的并集是? A: {1,2,3} B: {2,3,4} C: {1,2,3,4} D: {2,3}
以下程序的执行结果是 set1 = {1, 2, 3} set2 = set1.copy() set2.add(4) print(set1) A: {1, 2, 3, 4} B: {1, 2, 3} C: None D: 程序报错
以下程序的执行结果是 set1 = {1, 2, 3} set2 = set1.copy() set2.add(4) print(set1) A: {1, 2, 3, 4} B: {1, 2, 3} C: None D: 程序报错
求set1和set2两个集合的交集
求set1和set2两个集合的交集