摘要: 字符串 >>> str='a','b','c' >>> str ('a', 'b', 'c') >>> str[-1] 'c' >>> str[1:2] ('b',) >>> 遍历:>>> for i in str: ... print(i) ... a b c >>> 列表 ls=['this','is',&# 阅读全文
posted @ 2018-03-22 12:08 248黄迎迎 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 请按要求上机实践如下linux基本命令。 cd命令:切换目录 (1)切换到目录 /usr/local cd /usr/local (2)去到目前的上层目录 cd . . (3)回到自己的主文件夹 cd ~ ls命令:查看文件与目录 (4)查看目录/usr下所有的文件 cd /usr ls -al m 阅读全文
posted @ 2018-03-13 22:21 248黄迎迎 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 作业 1. 大数据对思维方式的重要影响。 2. 详细描述大数据、云计算、物联网之间的区别和联系。 3. 描述你对大数据应用与发展的看法,以及你在大数据浪潮中想扮演什么样的角色。 1 1) 及时解析故障和问题的所在; 2) 根据顾客的购买习惯可以分析流行以及价值情况; 3) 出行时可以更省时、更省钱的 阅读全文
posted @ 2018-03-06 20:34 248黄迎迎 阅读(150) 评论(0) 推荐(0) 编辑
摘要: #include #define N 30 char str[N]={NULL}; void Print(int i,char y); int st[N]; int t=0,k=0; struct node//定义一个队列 { char data; struct node * next; }; typedef struct node QueueNode; struct node2... 阅读全文
posted @ 2016-12-08 11:33 248黄迎迎 阅读(170) 评论(0) 推荐(0) 编辑
摘要: C程序语法(无左递归) —〉 | —〉 | | —〉 #include —〉 stdio.h丨stdlib.h丨string.h —〉 —〉 struct —〉 —〉|||& —〉||||& —〉 ||||& —〉 =A/A= A —> &|+|- —> 〉| —〉 + | - | * | / —〉 if else语句|switch语句||& —... 阅读全文
posted @ 2016-12-08 11:32 248黄迎迎 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 实验报告一 一、 实验目的 编制一个词法分析程序。 二、 实验内容和要求 输入:源程序字符串。 输出:二元组(种别,单词符号本身)。 三、 实验方法、步骤及结果测试 2.主要程序段及其解释: for(i=0;ch[i]!='\0';i++) { if((ch[i]=='+')||(ch[i]=='=')||(ch[... 阅读全文
posted @ 2016-12-08 11:29 248黄迎迎 阅读(122) 评论(0) 推荐(0) 编辑
摘要: C语言文法 程序->源程序|开始|结束 源程序 → 外部声明 | 子程序(外部声明) 文件头->函数 函数->库函数|函数主体|用户自定义函数 库函数->#include|#define... 函数主体->函数定义| 函数声明|语句串|选择结构 函数定义 → 函数类型(复合句)|变量 变量->标识符 标识符->英文字母|数字|下划线 英文字母->大写英文字母|小写英文字母 ... 阅读全文
posted @ 2016-12-08 11:25 248黄迎迎 阅读(100) 评论(0) 推荐(0) 编辑
摘要: #include #define N 30 char str[N]={NULL}; void Print(int i,char y); int st[N]; int t=0,k=0; struct node//定义一个队列 { char data; struct node * next; }; typedef struct node QueueNode; struct node2... 阅读全文
posted @ 2016-12-08 11:23 248黄迎迎 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #include #include char prog[800],token[20]; char ch; int syn,p,m,sum; char *rwtab[6]={"begin","if","then","while","do","end"}; scaner() { int n; for(n=0;n='a'&&ch='a'&&ch='0'&&ch='0'&a 阅读全文
posted @ 2016-11-03 10:24 248黄迎迎 阅读(132) 评论(0) 推荐(0) 编辑