• 2022-06-06
    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=
  • {1,2,3,5}# {2,3,5}# {2,3,5}# 3# True# False# {2,3,5}# 空集合

    内容

    • 0

      以下关于es6中set数据结构,运行结果正确的是() A: letset=newSet([1,2,2,2,3]);//Set(2){1,2,3} B: letarr1=[1,2,3,4]letarr2=[2,3,4,5]letset=newSet([...arr1,...arr2]);//Set{1,2,3,4,5} C: letset1=newSet()set1.add(1)set1.add(2)console.log(set1)//{1,2,3} D: varset1=newSet();set1.add(1)set1.add(2)set1.delete(1)console.log(set1)//{2}

    • 1

      已知x = [1, 2, 3],那么表达式not (set(x*100)-set(x))的值为________________。

    • 2

      If the CIF price of a product is USD100/set, freight charge USD10/set, insurance premium USD 10/set, commission rate 2%, the commission payment based on CIF price should be ( ) A: USD1.60/set B: USD1.63/set C: USD2.00/set D: USD2.04/set

    • 3

      表达式 set([1,2, 2,3]) == {1, 2, 3} 的值为 ____________ 。

    • 4

      The central knob of digital multimeter has several positions. To measure DC/AC voltage,set the multimeter to 1 . To measure rcsistance, set the multimeter to 2 . Tomeasure small current, set the multimeter to 3 . To measure large current, set the multi-meter to 4 :