题目描述 牛客最近来了一个新员工Fish,每天早晨总是会拿着一本英文杂志,写些句子在本子上。同事Cat对Fish写的内容颇感兴趣,有一天他向Fish借来翻看,但却读不懂它的意思。例如,“student. a am I”。后来才意识到,这家伙原来把句子单词的顺序翻转了,正确的句子应该是“I am a ...
分类:
其他好文 时间:
2018-01-06 00:04:30
阅读次数:
234
yarn.scheduler.capacity.maximum-applications 10000 最多可同时处于等待和运行状态的应用程序数目 yarn.scheduler.capacity.maximum-am-resource-percent 1 集群中可用于运行application mas... ...
分类:
其他好文 时间:
2018-01-03 11:48:42
阅读次数:
219
I was well beaten myself, and I am beffer for it. 我自己也被打败过,但我因此变得更好。 For most of us, the life road can't be as easy and smooth as we had expected, it ...
分类:
其他好文 时间:
2018-01-03 11:36:05
阅读次数:
163
``` python
%r用rper()方法处理对象 %s用str()方法处理对象 有些情况下,两者处理的结果是一样的,比如说处理int型对象。
例一:
print "I am %d years old." % 22 print "I am %s years old." % 22 print "I ... ...
分类:
编程语言 时间:
2018-01-02 21:19:33
阅读次数:
152
name = "my \tname is {name} and i am {year} old" print(name.capitalize()) #将首字母都大写 print(name.count("a")) #统计a的数量 print(name.center(100, "-"))... ...
分类:
编程语言 时间:
2017-12-30 18:08:32
阅读次数:
121
3down votefavorite I am trying to include this library to my project by adding compile 'jp.wasabeef:recyclerview-animators:2.2.7' to the dependencies. ...
分类:
移动开发 时间:
2017-12-26 23:11:32
阅读次数:
597
YY 2位数的年 YYYY 4位数的年 MM 2位数的月 MON 简拼的月 MONTH 全拼的月 DD 2位数的天DY 周几的缩写 DAY 周几的全拼 HH24 24小时制的小时 HH12 12小时制的小时 MI 显示分 SS 显示秒 AM 上下午 ...
分类:
数据库 时间:
2017-12-23 23:02:33
阅读次数:
185
公司中一般采用spark on yarn 模式,下面主要介绍spark on yarn的安装与简单程序运行。 1、spark on yarn两种运行模式 yarn-cluster:用于生产环境。Driver和AM运行在一起,client单独。 yarn-client:能立即看到输出结果。Driver ...
分类:
其他好文 时间:
2017-12-22 23:01:19
阅读次数:
160
* * 从Assets中读取图片 */ private Bitmap getImageFromAssetsFile(String fileName) { Bitmap image = null; AssetManager am = getResources().getAssets(); try {.... ...
分类:
移动开发 时间:
2017-12-22 15:02:07
阅读次数:
141
使用git的时候,需要删除几个id,会对到之前的代码,但又想保留现在的代码,以便后面从新合并,所以就将现在的代码打包成patch,留到下次合并。 ...
分类:
其他好文 时间:
2017-12-20 13:28:09
阅读次数:
144