举一反三
- 已知x=[[1]]*3,那么执行语句x[0][0]=5之后,变量x的值为[[5],[5],[5]]。
- 假设int[][][]x=new int[12][5][2],x.length值为()。 A: 2 B: 5 C: 60 D: 12
- 绘制[1,5]×[1,5]区域内高度为6的平面,可以使用的命令是( )。 A: axes('View',[-37.5, 30])surface(1:5, 1:5, 6*ones(5)) B: surf(1:5, 1:5, 6*ones(5)) C: axes('View',[-37.5, 30])[x,y]=meshgrid(1:5);surface(x, y, 6*ones(5)) D: [x,y]=meshgrid(1:5);surf(x, y, 6*ones(5))
- 已知x=np.array([1,2,3])和y=np.array([[3],[4],[5]]),表达式(x*y).sum()的值为______ 。
- 阅读下面的Javascript代码。[html][body][scripttype="text/javascript"]functionf(y){varx=y*y;returnx;}for(varx=0;x[5;x++){y=f(x);document.write(y);}</script][/][/]输出结果是() A: 01234 B: 014916 C: 01491625 D: 以上答案都不对
内容
- 0
下面代码的执行结果是()。 ls=[[1,2,3],[[4,5],6],[7,8]]print(len(ls))
- 1
下面代码的输出结果是( )。>>> x = 26.59>>> print(type(x))>>> y = "100083">>> print(type(y))知识点:数据的类型 未知类型:{'options': ["[class 'float'][class 'str']", "[class 'int'][class 'str']", "[class 'float'][class 'int']", "[class 'int'][class 'int']"], 'type': 102}
- 2
假设int[][][]x=newint[12][5][2],x.length值为()。
- 3
已知x=np.array([1,2,3])和y=np.array([[3],[4],[5]]),那么表达式(x*y).sum()的值为____________。 A: 72 B: 36 C: 15 D: 60
- 4
若double[][]x=new double[4][5],x.length和x[2].length的值分别是( ) A: 5和5 B: 4和5 C: 4和4 D: 5和4