We have some permutation A of [0, 1, ..., N - 1], where N is the length of A. The number of (global) inversions is the number of i < j with 0 <= i < j ...
分类:
其他好文 时间:
2021-04-07 11:05:47
阅读次数:
0
一、词频统计: 1.读文本文件生成RDD lines 2.将一行一行的文本分割成单词 words flatmap() lines=sc.textFile("file:///usr/local/spark/mycode/wordcount/word.txt") words = lines.flatMa ...
分类:
其他好文 时间:
2021-04-06 15:08:22
阅读次数:
0
1.StrToDate为delphi7中字符串转换为日期的函数例如: var Dat:Tdate; begin Dat:=StrToDate('2016-4-11'); //这里会将'2016-4-11'转换为Tdate类型,就是日期类型 end; 【在网上查询的资料不够完美,做法基本是让系统适用程 ...
// 判斷是否已登錄授權 module.exports.getDate = getDate function getDate(){ var time = new Date().toLocaleDateString().split('/').join('-') return time; } // 判斷 ...
分类:
Web程序 时间:
2021-04-06 14:39:35
阅读次数:
0
1. 安装需要的软件 ~]# yum install -y vim net-tools sysstat createrepo mkisofs rsync syslinux 2. 创建目录及文件拷贝 创建本地yum源 ~]# mount /dev/sr0 /mnt #挂载镜像或者U盘,如果是U盘就是/ ...
分类:
其他好文 时间:
2021-04-06 14:20:16
阅读次数:
0
1、import time 时间分为三种格式 1.1、时间戳 # 时间戳表示的是从1970年1月1日00:00:00开始按秒计算的偏移量。我们运行“type(time.time())”,返回的是float类型。 print(time.time()) # 1617280797.3197777 1.2、 ...
分类:
其他好文 时间:
2021-04-05 12:03:53
阅读次数:
0
默认mongoDB 并没有用户限制,任何人都可以连接数据库 默认有 admin 、 config 、local、 test 四个数据库,show dbs 命令开始会显示前三个数据库,因为test 没有数据。 1、内置角色 ####1.1 当前数据库的角色 |角色| 能够执行的操作| | | | | ...
分类:
数据库 时间:
2021-04-02 13:14:47
阅读次数:
0
1.centos部署go环境 vim /etc/profile export PATH=$PATH:/usr/local/go/bin export GOROOT=/usr/local/go #go包的解压目录 export GOPATH=/opt/GOPATH #表示实际的工作目录 export ...
分类:
Web程序 时间:
2021-04-02 12:53:57
阅读次数:
0
递归函数 函数的递归调用: 是函数嵌套调用的一种特殊形式。 具体指的是在调用一个函数的过程中又直接或者间接的调用了自己,称之为函数的递归调用。 函数的递归调用就是一个循环的过程,用函数来实现循环 def f1(): print('from f1') f1() f1() # 函数默认调用1000次 d ...
分类:
其他好文 时间:
2021-04-01 13:41:29
阅读次数:
0
Linux命令 1.Linux文件相关的命令 1.1 find 查找文件或目录 语法:find [搜索范围][匹配条件] 参数说明 -name:按文件名称查找 -user:按文件拥有者查找 -size:按照文件大小查找(+n大于,-n小于,n等于) [root@localhost ~]# find ...
分类:
系统相关 时间:
2021-03-31 12:14:17
阅读次数:
0