上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 66 下一页
摘要: def adder(m:Int,n:Int)=m+n val add2 = adder(2,_:Int) println(add2(3)) val add3 = adder(_:Int,3) println(add3(2))使用下划线“_”部分应用一个函数,结果将得到另一个函... 阅读全文
posted @ 2015-09-04 12:44 yshy 阅读(369) 评论(0) 推荐(0)
摘要: 使用spark-1.4.1-bin-hadoop2.6进行处理,测试文件大小为3G,测试结果:1:统计一个文件中某个字符的个数scala> sc.textFile("/home/y/my_temp/1.txt").filter(line=>line.contains("ok")).count()sc... 阅读全文
posted @ 2015-09-02 08:42 yshy 阅读(214) 评论(0) 推荐(0)
摘要: 1:工程目录以及依赖jar包如下,如果缺少某些jar包在weblogic控制台下面会有提示2:applicationContext.xml配置文件 3:web.xml配置文件 30 ind... 阅读全文
posted @ 2015-08-31 22:14 yshy 阅读(599) 评论(0) 推荐(0)
摘要: import QtQuick 2.4import QtQuick.Window 2.2Window { visible: true MainForm { anchors.fill: parent } Rectangle{ width: 300 ... 阅读全文
posted @ 2015-08-27 21:19 yshy 阅读(274) 评论(0) 推荐(0)
摘要: import QtQuick 2.4import QtQuick.Controls 1.4import QtQuick.Controls.Styles 1.4import QtQuick.Window 2.2Window { visible: true MainForm { ... 阅读全文
posted @ 2015-08-27 21:01 yshy 阅读(314) 评论(0) 推荐(0)
摘要: import QtQuick 2.4import QtQuick.Controls 1.4import QtQuick.Controls.Styles 1.4import QtQuick.Window 2.2Window { visible: true MainForm { ... 阅读全文
posted @ 2015-08-27 20:34 yshy 阅读(346) 评论(0) 推荐(0)
摘要: android:lines="5" android:ellipsize="end" 阅读全文
posted @ 2015-08-26 10:52 yshy 阅读(665) 评论(0) 推荐(0)
摘要: {{k.NAME}}-{{k.IS_MR}} ... 阅读全文
posted @ 2015-08-25 22:08 yshy 阅读(2061) 评论(0) 推荐(0)
摘要: 新建Qt Widgets Application->Browser01修改.pro文件内容:#-------------------------------------------------## Project created by QtCreator 2015-08-24T21:48:01##-... 阅读全文
posted @ 2015-08-24 22:02 yshy 阅读(308) 评论(0) 推荐(0)
摘要: 场景:在应用主界面,点击"按钮",弹出用户登陆对话框,用户输入用户名点击登陆,在主界面显示用户输入的用户名.1:新建Qt Widgets Application,名称:signal-t022:在主应用界面(mainwindow.ui)增加一个Label与PushButton,objectName分别... 阅读全文
posted @ 2015-08-22 16:27 yshy 阅读(337) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 66 下一页