1 class filter{ 2 public String name(){ 3 return getClass().getSimpleName(); 4 } 5 public String process(String s){ 6 return s; 7 } 8 class filter1 ex ...
分类:
编程语言 时间:
2019-11-23 09:22:18
阅读次数:
79
平台上执行复杂查询,OOM,根据日志提示的结局方法: -- SET spark.driver.memory=6/8G;【还是OOM】set spark.sql.autoBroadcastJoinThreshold=-1;【解决问题】 Exception in thread "broadcast-ex ...
分类:
数据库 时间:
2019-11-21 09:30:17
阅读次数:
98
Redis 1.使用scrapy-proxy随机IP代理插件: 安装: pip install scrapy_proxies 设置settings.py # Retry many times since proxies often fail RETRY_TIMES = 10 # Retry on m ...
分类:
其他好文 时间:
2019-11-20 16:47:33
阅读次数:
102
欧拉定理(EX及证明) [TOC] 本篇很多推论基于质数唯一分解定理,请读者先行了解。 欧拉函数 定义 有两种: 1. 定义欧拉函数 $\varphi(x)$ 表示小于 $x$ 且与 $x$ 互质的数的个数,定义 $1$ 与任何数互质。 2. 定义 剩余类 $c_i$ 是 $mod\;x=i$ 的数 ...
分类:
其他好文 时间:
2019-11-19 15:47:50
阅读次数:
91
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2019-11-17 13:09:53
阅读次数:
72
bool b = 5 == 55; std::cout << b<< std::endl; EX ...
分类:
编程语言 时间:
2019-11-15 22:04:47
阅读次数:
80
Ext2: Ext2是GNU/Linux系统中标准的文件系统。 这是Linux中使用最多的一种文件系统,它是专门为Linux设计的,拥有极快的速度和极小的CPU占用率。 Ext2既可以用于标准的块设备(如硬盘),也被应用在软盘等移动存储设备上。 Ext3: Ext3是Ext2的下一代,也就是保有Ex ...
分类:
系统相关 时间:
2019-11-13 16:31:44
阅读次数:
105
九、人生哲理类:机遇 Directions:Write an essay of 160-200 words based on the following drawing. In your essay, you should 1) describe the drawing briefly, 2) ex ...
分类:
其他好文 时间:
2019-11-11 12:31:47
阅读次数:
134