Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-06-26 00:29:49
阅读次数:
168
#coding = utf-8import osstr1 = 'd:/v3/'str2 = 'd:/v3/'fobj = open('D:/V3/txt/1.txt','rb')line = fobj.readline()while line: if(line.find('a') > 0):...
分类:
其他好文 时间:
2014-06-25 23:22:26
阅读次数:
270
java JNI 调试出现的错误ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../s....
分类:
编程语言 时间:
2014-06-25 21:02:35
阅读次数:
395
Find: In a sense, find is the opposite of the [] operator. Instead of taking an index and extracting the corresponding character, it takes a...
分类:
其他好文 时间:
2014-06-24 12:38:45
阅读次数:
173
转载请注明出处:http://www.openext.org/2014/06/libvirt-error1在编译配置libvirt12.2时如果prefix不是usr目录,在使用libvirt创建VM则会出现ERROR:internal error Unable to locate libvirtd daemon in $PATH即便libvirtd所在目录已经加入了PATH。本人认为这是libv...
分类:
其他好文 时间:
2014-06-22 11:18:08
阅读次数:
260
首先申明一下,写此博文的目的是纪录一下,知识都是现成的,只是整理一下,为了让自己更容易看懂,比在其他地方更容易明白。因为它们太常用了,不忍心每次都去用那么长的时间查看MSDN,希望能在这里用理少的时间来理解并运用其用法。最终目标是减少从接触到能理解并使用的时间。List类型的查找操作Find ...
分类:
其他好文 时间:
2014-06-22 10:48:22
阅读次数:
231
文本的查找可以使用两种方式来实现,即使用locate命令来查找和find命令来查找那么这两种方式有什么区别呢?locate:是一种非实时查找,所谓非实时查找就是查找的不够实际,不够精确。因为locate查找是在系统文件数据库中进行的,而数据库默认是一天更新一次,也就是说你查找的..
分类:
系统相关 时间:
2014-06-22 09:50:43
阅读次数:
208
在linux下写了一个非常简单的Hello world程序,编译运行竟然报错:Error: Could not find or load main class Hello
最后发现是CLASSPATH的问题。
首先需要检查jdk环境变量是否配置正确:参考这篇文章:ubuntu12.04 安装配置jdk1.7
主要在环境变量这块:
export JAVA_HOME=/usr/java/jdk...
分类:
系统相关 时间:
2014-06-22 08:58:51
阅读次数:
410
题目:
Given a binary tree containing digits from 0-9 only, each root-to-leaf
path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find...
分类:
其他好文 时间:
2014-06-22 08:30:24
阅读次数:
236
Inflate() method can find out a layout defined by xml,as like the findViewById() method,but there have some different between them.
The different are:
If your Activity used other layout,such as...
分类:
移动开发 时间:
2014-06-22 06:41:43
阅读次数:
362