摘要:
python中创建字典、字典的访问 1、 >>> test1 = {"aaa":111,"bbb":222,"ccc":333} >>> test1 {'aaa': 111, 'bbb': 222, 'ccc': 333} >>> type(test1) <class 'dict'> >>> 2、 阅读全文
摘要:
1、 问题 >>> test2 = dict((('F',20),('i',40),('s',80))) Traceback (most recent call last): File "<pyshell#171>", line 1, in <module> test2 = dict((('F',2 阅读全文
摘要:
1、 #include <stdio.h> #define NUMBER 1000 int main(void) { int i, j, num, a[NUMBER], max, b[11] = {0}; do { printf("num = "); scanf("%d", &num); if(nu 阅读全文
摘要:
1、 #include <stdio.h> int main(void) { int i, j, k, a[2][4][3], b[4][3] = {0}; puts("please input the elements of the array."); for(i = 0; i < 2; i++) 阅读全文
摘要:
1、 #include <stdio.h> int main(void) { int i, j, a[6][2], b[2] = {0}, c[6] = {0}; puts("please input the elements of array a."); for(i = 0; i < 6; i++ 阅读全文
摘要:
c语言中实现矩阵的转置 1、 #include <stdio.h> int main(void) { int i, j, a[4][6], b[6][4]; puts("please input the elements of matrix a."); for(i = 0; i < 4; i++) 阅读全文
摘要:
1、 #include <stdio.h> int main(void) { int i, j, a[6][2]; puts("please input the elements of the array."); for(i = 0; i < 6; i++) { for(j = 0; j < 2; 阅读全文
摘要:
c语言中计算矩阵的乘积。 矩阵相乘的条件:左侧矩阵的列数等于右侧矩阵的行数。 矩阵相乘的结果:行数为左侧矩阵的行数,列数为右侧矩阵的列数。 #include <stdio.h> int main(void) { int i, j, k, a[4][6], b[6][7], c[4][7] = {0} 阅读全文