上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: >>> name=input("input name:") input name:Li ming >>> sex=bool(input("input sex(True,False):")) input sex(True,False):True >>> scale=float(input("input 阅读全文
posted @ 2020-06-07 22:11 abel2020 阅读(109) 评论(0) 推荐(0) 编辑
摘要: >>> name=input("input name:") // " " 里面是提示内容,函数返回输入的内容,赋值给变量 input name:lili >>> sex=input("input sex(True,False):") input sex(True,False):False >>> a 阅读全文
posted @ 2020-06-07 21:32 abel2020 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-07 20:39 abel2020 阅读(109) 评论(0) 推荐(0) 编辑
摘要: ''' these are comments my first py prog ''' print("math copute: \n") a=2 b=3 c=a+bd=a**b #### " " 里面原样输出, 多个输出 用 , ############# print("a =",a,", b =" 阅读全文
posted @ 2020-06-07 20:06 abel2020 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-07 12:45 abel2020 阅读(102) 评论(0) 推荐(0) 编辑
摘要: //#include "Header.h" #include <stdio.h> #include <stdbool.h> #include <stdlib.h> //exit 函数需要 #include <malloc.h> #define MAXSIZE 20 //队列长度 #define NO 阅读全文
posted @ 2020-06-07 00:19 abel2020 阅读(229) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #define NOINFO -1 typedef struct node { int data; struct TNode* L; struct TNode* R; }Node, 阅读全文
posted @ 2020-06-05 20:55 abel2020 阅读(162) 评论(0) 推荐(0) 编辑
摘要: //冒泡排序,输入一个数组,冒泡排序 #include <stdio.h> #include<time.h> #include<stdlib.h> # define MAXSIZE 10 //要排序数组的长度 #define random(x) (rand()%x) //宏定义随机数函数 //三个参 阅读全文
posted @ 2020-06-04 23:53 abel2020 阅读(125) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> char A, B, C; han(int, char, char, char); main() { han(4, 'A', 'B', 'C'); } han(n, A, B, C) { if (1 == n) printf("%d %c-%c\n", n, A 阅读全文
posted @ 2020-06-04 11:00 abel2020 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdbool.h> #include <stdlib.h> //exit 函数需要 #include <malloc.h> #define MAXSIZE 8 typedef struct queue { int* arr; //int 类 阅读全文
posted @ 2020-06-03 23:46 abel2020 阅读(160) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页