[tex=8.857x2.643]1xGCH8sP1neycrsoGBxSfCY9yfjHflPUfi1Expr+r3VUmAdO/kHCX52WtpmWcIKIuz6blu0YvcrVJxkqqPzgDQ==[/tex]
举一反三
- 已知 x = [6, 9, 8],那么执行语句 x.insert(0, 1)之后,x的值为( )。 A: [1, 6, 9, 8] B: [6, 9, 8, 1] C: [6, 9, 1, 8] D: [6, 1, 9, 8]
- 设二维随机变量(X,Y)的联合分布列为 XY -1 0 1 -1 1 1/6 1/9 2/9 1/3 0 1/6则P{XY=1}为( ) A: 0 B: 1/6 C: 1/3 D: 2/3
- >>>x= [10, 6, 0, 1, 7, 4, 3, 2, 8, 5, 9]>>>print(x.sort()) 语句运行结果正确的是( )。 A: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] B: [10, 6, 0, 1, 7, 4, 3, 2, 8, 5, 9] C: [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0] D: ['2', '4', '0', '6', '10', '7', '8', '3', '9', '1', '5']
- set1 = {x for x in range(10)} print(set1) 以上代码的运行结果为? A: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} B: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10} C: {1, 2, 3, 4, 5, 6, 7, 8, 9} D: {1, 2, 3, 4, 5, 6, 7, 8, 9,10}
- 【单选题】rev(c(1,3,2,6,7,8,8,1,1,0))的运行结果 ? A. [1] 0 1 1 1 2 3 6 7 8 8 B. [1] 1 3 2 6 7 8 8 1 1 0 C. [1] 0 1 1 8 8 7 6 2 3 1 D. [1] 8 8 7 6 3 2 1 1 1 0