93.I will accept any job [ ] I don’t have to get up early. A: as soon as B: as long as C: as well as D: as early as
93.I will accept any job [ ] I don’t have to get up early. A: as soon as B: as long as C: as well as D: as early as
下面代码的输出结果是: 。ls = [[1,3,6],[4,6,3],[2,8,5]]sum1,sum2 = 0,0for i in range(3):sum1 = sum1 + ls[i][i]sum2 = sum2 + ls[i][2-i]print("sum1={},sum2={}".format(sum1,sum2))[/i][/i][/i]
下面代码的输出结果是: 。ls = [[1,3,6],[4,6,3],[2,8,5]]sum1,sum2 = 0,0for i in range(3):sum1 = sum1 + ls[i][i]sum2 = sum2 + ls[i][2-i]print("sum1={},sum2={}".format(sum1,sum2))[/i][/i][/i]
已知x=[[1,2,3],[4,5,6]],表达式[[row[i] for row in x] for i in range(len(x[0]))]的值为(______ )。[/i]
已知x=[[1,2,3],[4,5,6]],表达式[[row[i] for row in x] for i in range(len(x[0]))]的值为(______ )。[/i]
以下程序的输出结果是 main() { int i, k, a[10], p[3]; k=5; for (i=0;i<10;i++) a[i ]=i; for (i=0;i<3;i++) p[i ]=a[i *(i+1)]; for (i=0;i<3;i++) k+=p[i] *2; printf("%d ",k); }[/i]
以下程序的输出结果是 main() { int i, k, a[10], p[3]; k=5; for (i=0;i<10;i++) a[i ]=i; for (i=0;i<3;i++) p[i ]=a[i *(i+1)]; for (i=0;i<3;i++) k+=p[i] *2; printf("%d ",k); }[/i]
已知x=[[1,2,3],[4,5,6]],表达式sum([i*j for i,j in zip(*x)])的值为(______ )。
已知x=[[1,2,3],[4,5,6]],表达式sum([i*j for i,j in zip(*x)])的值为(______ )。
下面代码的运行结果是_____________。 public class Test{ public static void main(String[] args){ int[] a=new int[3]; int[] b= new int[]{1,2,3,4,5}; a=b; for(int i=0; i<b.length; i++){ System.out.print(a[i]+" "); } } }[/i]
下面代码的运行结果是_____________。 public class Test{ public static void main(String[] args){ int[] a=new int[3]; int[] b= new int[]{1,2,3,4,5}; a=b; for(int i=0; i<b.length; i++){ System.out.print(a[i]+" "); } } }[/i]
下面代码的运行结果是。 public class Test { public static void main(System[] args){ int[ ] a ={10,20,30}; int[ ] b ={1,2,3,4,5}; a=b; for (int i=0;i<a.length;i++){ System.out.print(a[i]+” ”); } } }[/i]
下面代码的运行结果是。 public class Test { public static void main(System[] args){ int[ ] a ={10,20,30}; int[ ] b ={1,2,3,4,5}; a=b; for (int i=0;i<a.length;i++){ System.out.print(a[i]+” ”); } } }[/i]
[音频]I've been ________________ , but I'm _________________ .
[音频]I've been ________________ , but I'm _________________ .
以下函数的功能是连接两个字符串,请完善程序。void str_cat(char str1[ ], char str2[ ], char str[ ]){ int i,j; for(i=0;str1[i]!= '0';i++) str[i]=str1[i]; for(j=0;str2[j]!='0';j++) str[i++]=str2[j]; ; }[/i][/i][/i] A:
以下函数的功能是连接两个字符串,请完善程序。void str_cat(char str1[ ], char str2[ ], char str[ ]){ int i,j; for(i=0;str1[i]!= '0';i++) str[i]=str1[i]; for(j=0;str2[j]!='0';j++) str[i++]=str2[j]; ; }[/i][/i][/i] A:
以下程序的输出结果是【 】。 class Program { public static void Main(string[] args) { int[] a = new int[3] { 1, 2, 3 }; for (int i = 0; i < 3; i++) Console.Write("{0} ", a[i]); Console.WriteLine(); int[] b = a; for (int i = 0; i < 3; i++) b[i] = 2 * b[i]; for (int i = 0; i < 3; i++) Console.Write("{0} ", a[i]); Console.WriteLine(); Console.Read(); } }[/i][/i][/i][/i]
以下程序的输出结果是【 】。 class Program { public static void Main(string[] args) { int[] a = new int[3] { 1, 2, 3 }; for (int i = 0; i < 3; i++) Console.Write("{0} ", a[i]); Console.WriteLine(); int[] b = a; for (int i = 0; i < 3; i++) b[i] = 2 * b[i]; for (int i = 0; i < 3; i++) Console.Write("{0} ", a[i]); Console.WriteLine(); Console.Read(); } }[/i][/i][/i][/i]