<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< ...
分类:
Web程序 时间:
2021-03-30 12:55:39
阅读次数:
0
1.MyJsonUtils.toJsonString 【toJsonString方法是自己定义的,详细如下】 public static String toJsonString(Object obj){ String jsonStr = null; try { jsonStr = mapper.wr ...
分类:
Web程序 时间:
2021-03-30 12:47:24
阅读次数:
0
1. 在容器里查看 / $ ip link show eth0 531: eth0@if532: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP link/ether 02:42:ac:12:00:06 ...
分类:
其他好文 时间:
2021-03-30 12:45:47
阅读次数:
0
1.准备文本文件,从文件创建RDD lines=sc.textFile(),筛选出含某个单词的行 lines.filter(),lambda 参数:条件表达式 2.生成单词的列表,从列表创建RDD words=sc.parallelize(),筛选出长度大于2 的单词 words.filter() ...
分类:
其他好文 时间:
2021-03-29 12:44:51
阅读次数:
0
幕布原文:https://share.mubu.com/doc/5G_C-wqFNdX 本文链接:https://www.cnblogs.com/hchengmx/p/14587124.html ...
分类:
其他好文 时间:
2021-03-29 12:42:14
阅读次数:
0
思路:利用逻辑符的短路性质设置递归边界。 剑指 Offer 64. 求1+2+…+n class Solution { int res = 0; public int sumNums(int n) { boolean x = n > 1 && sumNums(n-1) > 0; res += n; ...
分类:
其他好文 时间:
2021-03-29 12:40:44
阅读次数:
0
1.添加装饰器 @app.cli.command() def hello(): click.echo('Hello, Human!click Fun.') 注册了flask命令:即函数名:hello,执行:flask hello 来触发执行 传入自定义命令:@app.cli.command('abc ...
分类:
其他好文 时间:
2021-03-29 12:32:45
阅读次数:
0
题意 有$N$个数,依次选取,第$i$个数被选择的概率为$p_i$,求至少选了$L$次后所选取的数的和$+K\geq 0$的概率。 思路 设$f_{i,j,k}$为选到第$i$个数时已经选了$j$个,当前和为$k$时的概率。 考虑当前和$\geq N$时,可以将它视作为$N$,因为它们都一定满足了选 ...
分类:
其他好文 时间:
2021-03-29 12:31:18
阅读次数:
0
官网地址:https://dev.mysql.com/doc/refman/5.6/en/charset-unicode-utf8mb4.html 10.9.1 utf8mb4 字符集 (4 字形 UTF-8 单码编码) 字符集具有以下特征:utfmb4 支持 BMP(Bitmap(位图)) 和补充 ...
分类:
数据库 时间:
2021-03-29 12:30:57
阅读次数:
0
看上图,在一个方法中声明了一个对象:PlayVideoForm,在Delphi 10.4这个版本中,PlayVideoForm的值不为nil,Delphi 10.3.3版本中默认为nil,升级到10.4.2后,因为不nil,所以无法建立对象PlayVideoForm,产生地址错误。把这个PlayVi ...
分类:
移动开发 时间:
2021-03-29 12:22:51
阅读次数:
0