一、词频统计: 读文本文件生成RDD lines 将一行一行的文本分割成单词 words flatmap() 全部转换为小写 lower() 去掉长度小于3的单词 filter() 去掉停用词 转换成键值对 map() 统计词频 reduceByKey() 按字母顺序排序 按词频排序 10、结果文件 ...
分类:
其他好文 时间:
2021-04-23 12:06:34
阅读次数:
0
https://blog.csdn.net/dietime1943/article/details/72742651 错误的做法: update 表1 set 表1.字段= (SELECT表2.字段FROM表2 where 表2.ID = 表1.ID) 后面这种情况其实可以使用left join的方 ...
分类:
数据库 时间:
2021-04-23 12:02:59
阅读次数:
0
Flask:Flask 是一个微型的 Python 开发的 Web 框架,基于Werkzeug WSGI工具箱和Jinja2 模板引擎。 Flask的下载与基础配值: W+R打开cmd (输入pip install flask==指定版本 -i指定镜像源) 下载好之后:在命令框中输入pip list ...
分类:
编程语言 时间:
2021-04-23 11:58:18
阅读次数:
0
Span one vector to a line Let \(\mathbf{v}\) be a nonzero vector in \(\mathbb{R}^{3} .\) Then \(\operatorname{Span}\{\mathbf{v}\}\) is the set of all ...
分类:
其他好文 时间:
2021-04-22 16:15:07
阅读次数:
0
从 SAP Fiori Elements 实现源代码中的 SmartTable.xml 能看出,ListReport 类型的 SAP Fiori Elements 应用,其表格类型包含 4 种: AnalyticalTable TreeTable GridTable ResponsiveTable ...
分类:
其他好文 时间:
2021-04-22 16:04:08
阅读次数:
0
对象举例: class User { private String username; private List<Wife> wifes; } class Wife { } 1. 问题 封装出的List长度数据不正确 比如wifes数据应该有两条,但是查询出来只有一条 2. 原因 由于使用Mybat ...
分类:
其他好文 时间:
2021-04-22 15:52:34
阅读次数:
0
1:创建项目 django-admin startproject 项目名称。如果没有修改系统配置,可以使用django-admin的绝对路径去创建项目 最外层 sms/ 就是项目根目录 ,项目文件都放在里面。 manage.py 是一个工具脚本,用作项目管理的。以后我们会使用它执行管理操作。 里面的 ...
分类:
其他好文 时间:
2021-04-22 15:44:51
阅读次数:
0
SelectMany 一个序列的每个元素投影, 将平展为一个序列。结果延迟执行。 PetOwner[] petOwners ={ new PetOwner { Name="Higa, Sidney",Pets = new List<string>{ "Scruffy", "Sam" } }, new ...
分类:
其他好文 时间:
2021-04-22 15:43:01
阅读次数:
0
1、read从键盘读入 [root@centos7 test]# echo $a [root@centos7 test]# read a 123456 [root@centos7 test]# echo $a 123456 2、-p 参数 加入提示 [root@centos7 test]# unse ...
分类:
系统相关 时间:
2021-04-22 15:41:37
阅读次数:
0
等待唤醒机制: 1:我们知道Object中有wait/notify机制,但是这种机制是基于Monitor机制实现,使用Monitor Object操作的,所以wait/notify方法是在sychronized作用域范围内才能使用的,不然会报错。 而且notify要在wait方法调用之后进行调用才有 ...
分类:
其他好文 时间:
2021-04-22 15:27:51
阅读次数:
0