已知多项式a(x)=x^3+6x+2,b(x)=〖2x〗^2+6x+8,要完成两个多项式相加、相乘和相除(a(x))/(b(x))的运算,则以下哪个程序正确( ) A: a= [1 0 6 2]; b= [2 6 8]; C=a+b D=conv(a,b) E=deconv(a,b) B: a= [1 6 2]; b= [2 6 8]; C=a+b D=conv(a,b) [q,r]=deconv(a,b) C: a= [1 0 6 2]; b= [2 6 8]; C=a+(0,b) D=conv(a,b) [q,r]=deconv(a,b) D: a= [1 0 6 2]; b= [2 6 8]; C=a+b D=conv(a,b) [q,r]=deconv(a,b)
已知多项式a(x)=x^3+6x+2,b(x)=〖2x〗^2+6x+8,要完成两个多项式相加、相乘和相除(a(x))/(b(x))的运算,则以下哪个程序正确( ) A: a= [1 0 6 2]; b= [2 6 8]; C=a+b D=conv(a,b) E=deconv(a,b) B: a= [1 6 2]; b= [2 6 8]; C=a+b D=conv(a,b) [q,r]=deconv(a,b) C: a= [1 0 6 2]; b= [2 6 8]; C=a+(0,b) D=conv(a,b) [q,r]=deconv(a,b) D: a= [1 0 6 2]; b= [2 6 8]; C=a+b D=conv(a,b) [q,r]=deconv(a,b)
>>>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']
>>>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}
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}
执行下列代码后,数组的值是?[img=389x159]17e0b3a13c82cf0.png[/img] A: 一维数组{1, 4, 3, 2, 1, 0} B: 一维数组{1, 8, 0, 1, 2, 3, 4, 6, 2} C: 一维数组{1, 4, 3, 2, 1, 0, 8, 6, 2} D: 一维数组{1, 8, 0, 1, 2, 2, 9}
执行下列代码后,数组的值是?[img=389x159]17e0b3a13c82cf0.png[/img] A: 一维数组{1, 4, 3, 2, 1, 0} B: 一维数组{1, 8, 0, 1, 2, 3, 4, 6, 2} C: 一维数组{1, 4, 3, 2, 1, 0, 8, 6, 2} D: 一维数组{1, 8, 0, 1, 2, 2, 9}
【计算题】5 ×8= 6×4= 7×7= 9×5= 2×3= 9 ×2= 8×9= 7×8= 5×5= 4×3= 5+8= 6 ×6= 3×7= 4×8= 9×3= 1 ×2= 9×9= 6×8= 8×0= 4×7=
【计算题】5 ×8= 6×4= 7×7= 9×5= 2×3= 9 ×2= 8×9= 7×8= 5×5= 4×3= 5+8= 6 ×6= 3×7= 4×8= 9×3= 1 ×2= 9×9= 6×8= 8×0= 4×7=
若有a = [2*x for x in range(4)],语句print(a)输出为 A: [2, 4, 8,16] B: [2, 4, 6, 8] C: [1, 2, 4, 8] D: [0, 2, 4, 6]
若有a = [2*x for x in range(4)],语句print(a)输出为 A: [2, 4, 8,16] B: [2, 4, 6, 8] C: [1, 2, 4, 8] D: [0, 2, 4, 6]
list(range(-1,10,2)) A: [0, 2, 4, 6, 8, 10] B: [-1, 1, 3, 5, 7, 9] C: [0, 2, 4, 6, 8]
list(range(-1,10,2)) A: [0, 2, 4, 6, 8, 10] B: [-1, 1, 3, 5, 7, 9] C: [0, 2, 4, 6, 8]
set1 = {x for x in range(10) if x%2==0} print(set1) 以上代码的运行结果为? A: {0, 2, 4, 6} B: {2, 4, 6, 8} C: {0, 2, 4, 6, 8} D: {4, 6, 8}
set1 = {x for x in range(10) if x%2==0} print(set1) 以上代码的运行结果为? A: {0, 2, 4, 6} B: {2, 4, 6, 8} C: {0, 2, 4, 6, 8} D: {4, 6, 8}
“[ 2*x+2 for x in range(5) ]”生成的列表是( )。 A: [2, 4, 6, 8, 10] B: [0, 2, 4, 6, 8] C: [1, 2, 3, 4, 5] D: [0, 1, 2, 3, 4]
“[ 2*x+2 for x in range(5) ]”生成的列表是( )。 A: [2, 4, 6, 8, 10] B: [0, 2, 4, 6, 8] C: [1, 2, 3, 4, 5] D: [0, 1, 2, 3, 4]
阅读以下代码,x=[0 1 0 2 0 3 0 4];for k=1:8if x(k)==0 x(k)=k;elsex(k)=2*k+1;endend回答:x(2)=______ ,x(5)=______
阅读以下代码,x=[0 1 0 2 0 3 0 4];for k=1:8if x(k)==0 x(k)=k;elsex(k)=2*k+1;endend回答:x(2)=______ ,x(5)=______