摘要:
001、 >>> test = [("a",100), ("b", 200), ("c", 300)] >>> test [('a', 100), ('b', 200), ('c', 300)] >>> dict(test) ## 列表转换为字典 {'a': 100, 'b': 200, 'c': 阅读全文
posted @ 2022-08-13 16:14
小鲨鱼2018
阅读(425)
评论(0)
推荐(0)
摘要:
001、 #include <stdio.h> #define NUMBER 5 // 此处为对象式宏, 运行程序时, main函数体内的NUMBER将被替换为5 int main(void) { int i; int tensu[NUMBER]; int sum = 0; printf("plea 阅读全文
posted @ 2022-08-13 00:45
小鲨鱼2018
阅读(56)
评论(0)
推荐(0)
摘要:
001、 #include <stdio.h> #define NUMBER 7 int main(void) { int i, temp; int array[NUMBER]; puts("please input the arrays."); for(i = 0; i < NUMBER; i++ 阅读全文
posted @ 2022-08-13 00:37
小鲨鱼2018
阅读(181)
评论(0)
推荐(0)

浙公网安备 33010602011771号