A: test_x[:, 1:3]
B: test_x[0:, 2:3]
C: test_x[1:3]
D: test_x[2:3]
举一反三
- 下列代码的运行结果是______ <script> var x = 1; function test() { var x = 2; y = 3; document.write(x); } test(); document.write(x); document.write(y); </script>
- 下列语句x为字符串。 x = 'Python 3 Test'
- class Test{int x;static int y;static void Main(){Test t = new Test();t.x = 1;t.y = 1;test.x = 1;test.y = 1;}}以上程序中共有几句错误() A: 1 B: 2 C: 3 D: 4
- 如下函数的返回值是___________def test(): temp=[1,2,3,4,5,6,7,8,9,10] return [x for x in temp if x%3==2] A: [2, 5, 8] B: [1, 3, 6] C: [3, 6, 9] D: [1, 4, 7]
- A={x▏0<x≦2},B={x▏1<x≦3},则A∩B和A∪B分别是( ) A: {x▏1<x≦3}和{x▏0<x≦3} B: {x▏1<x<2}和{x▏2<x≦3} C: {x▏1<x≦2}和{x▏0<x≦3} D: {x▏1<x≦2}:和{x▏0<x<3}
内容
- 0
Define a function as below with f as the function parameter,def test(f, a, b): print(f(a, b))Which of the following options will be the result of test((lambda x,y: x ** 3 + y), 2, 3)? A: 8 B: 9 C: 10 D: 11
- 1
(06-03)在Java中,以下程序编译运行后的输出结果为( )。 public class Test { int x, y; Test(int x, int y) { this.x = x; this.y = y; } public static void main(String[] args) { Test pt1, pt2; pt1 = new Test(3, 3); pt2 = new Test(4, 4); System.out.print(pt1.x + pt2.x); } }
- 2
设有泛型类的定义如下class Test; { }则由该类创建对象时,使用正确的是? A: Test; x = new Test;(); B: Test x = new Test(); C: Test; x = new Test;(); D: Test; x = new Test;();
- 3
阅读下面的程序 public class Test { public static void main(String[] args) { for(int x = 0 ; x <=3 ; x++){ continue; System.out.print(x%2); } } }
- 4
有定义语句:int a=1,b=2,c=3,x;,则以下选项中各程序段执行后,x的值不等于3的是 。 A: if(c<3)x=1; else if(b<2)x=2; else x=3; B: if(a<2)x=3; else if(a<1)x=2; else x=1; C: if(a<3)x=3; if(a<2)x=2; if(a<1)x=1; D: if(a<2)x=b; if(b<3)x=c; if(c<1)x=a;