字节流与字符流先来看一下流的概念:在程序中所有的数据都是以流的方式进行传输或保存的,程序需要数据的时候要使用输入流读取数据,而当程序需要将一些数据保存起来的时候,就要使用输出流完成。程序中的输入输出都是以流的形式保存的,流中保存的实际上全都是字节文件。字节流与字符流在java.io包中操作文件内容的...
分类:
其他好文 时间:
2016-01-09 18:20:08
阅读次数:
150
github地址:https://github.com/Lingchaoyang网盘发布地址:http://pan.baidu.com/s/1qXgHiyC燃尽图:团队得分(100分制):杨灵超:35分施少涛:35分洪雪意:30分总结:在一开始看到老师给我们出两个题目的时候,我们队的小伙伴竟不约而同...
分类:
其他好文 时间:
2016-01-09 18:13:10
阅读次数:
128
红黑树(英语:Red–black tree)是一种自平衡二叉查找树,是在计算机科学中用到的一种数据结构,典型的用途是实现关联数组。它是在1972年由鲁道夫·贝尔发明的,他称之为"对称二叉B树",它现代的名字是在Leo J. Guibas和Robert Sedgewick于1978年写的一篇论文中获得...
分类:
其他好文 时间:
2016-01-09 18:15:11
阅读次数:
241
46. Permutations
My Submissions
Question
Total Accepted: 81495 Total
Submissions: 239854 Difficulty: Medium
Given a collection of distinct numbers, return all possible permutations...
分类:
其他好文 时间:
2016-01-09 17:05:29
阅读次数:
148
先来张用了12不同插补器的效果图:图中的序号和下面插入器的序号一致,以方便对照效果选择1:AccelerateDecelerateInterpolator 加速减速插补器(先慢后快再慢)
2:AccelerateInterpolator 加速插补器(先慢后快)
3:AnticipateInterpolator 向前插补器(先往回跑一点,再加速向前跑)
4:AnticipateOvershootInt...
分类:
其他好文 时间:
2016-01-09 17:05:08
阅读次数:
217
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr...
分类:
其他好文 时间:
2016-01-09 17:05:03
阅读次数:
142
Given an array of integers and an integerk, find out whether there are two distinct indicesiandjin the array such thatnums[i] = nums[j]and the differe...
分类:
其他好文 时间:
2016-01-09 17:03:27
阅读次数:
147
get path of basehttp.py$ python>>> import site>>> site.getsitepackages()['/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages', '/u...
分类:
其他好文 时间:
2016-01-09 17:05:57
阅读次数:
152
http://blog.talkingdata.net/?p=3165背景当时的现状:开始使用Kafka的时候,使用的版本是0.7.2,当时的目的是为了替代kestrel,主要是使用Kafka来做消息传输中间件。Kafka解决了我们当时使用Kestrel遇到的最大的三个问题:吞吐量、数据量、一份数据...
分类:
其他好文 时间:
2016-01-09 17:03:46
阅读次数:
226
话不多说。直接上代码咯。欢迎交流。/** * Created by whuscalaman on 1/7/16. */import org.apache.spark.{SparkConf, SparkContext}import org.apache.spark.mllib.classifica.....
分类:
其他好文 时间:
2016-01-09 17:04:14
阅读次数:
216
mapper.xml文件中,多个标签中存在属性中使用同名变量,若前边的标签修改了变量的值,则前边的标签可能会影响后边的标签(一般是forEache标签影响后边标签),示例: 1 2 3 4 5 6 7 8 9 10 ...
分类:
其他好文 时间:
2016-01-09 17:02:42
阅读次数:
426
import java.io.*;class Person implements Serializable{ String name ="wang"; transient int age=8; static String country="cn"; Person(String...
分类:
其他好文 时间:
2016-01-09 17:00:41
阅读次数:
125
梦想就像远处深山中,那虚无缥缈的云,熙熙攘攘,远观,它就在这里;靠近去触碰,却又是那么遥不可及..... --序言 梦想是什么? 小时候,常常听到...
分类:
其他好文 时间:
2016-01-09 17:00:32
阅读次数:
170
桌面计算机(点击右键)----管理----设备管理器-----鼠标------选择触摸板(ps/2 兼容鼠标)---右击------跟新驱动-------浏览计算机查找------从计算机列表中选择------去掉显示兼容硬件勾勾-----选第一个------下一步-----重启
分类:
其他好文 时间:
2016-01-09 17:00:05
阅读次数:
94
转自“http://blog.sina.com.cn/s/blog_9dd7675101012v1h.html”setBackgroundDrawable和setBackgroundColor的用法1.设置背景图片,图片来源于drawable;flightInfoPanel.setBackgroun...
分类:
其他好文 时间:
2016-01-09 16:57:05
阅读次数:
150
#import int main(int argc, const char * argv[]) { @autoreleasepool { //1.有个数 123456789,如何将这个数每一位数,从末尾开始依次放入一个数组中 //(那么这个新的数组的第一位元素9,一次类推)如果你成功了...
分类:
其他好文 时间:
2016-01-09 16:59:01
阅读次数:
187