Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-06-18 12:51:52
阅读次数:
205
解决方法:1. 右键点击工程,选择 "Properties"2. 选择左边的 "Java Build Path"3. 打开 "Source" 标签面板4. 点击 "Add Folder..."5. 勾选 "gen" 文件夹,点击OK,点击YES,再点击OK6. 最后右键点击工程,选择 "Andrio...
分类:
其他好文 时间:
2014-06-18 11:00:21
阅读次数:
197
python中,import module会去sys.path搜索,sys.path是个列表,并且我们可以动态修改。要import某个目录的module,我们sys.path.insert(0,somedir)来加入搜索路径,就可以import了。既然这样,要import上一级目录的module,可...
分类:
其他好文 时间:
2014-06-18 09:37:57
阅读次数:
164
如何获得控制台应用程序的路径
(1) 使用反射获得执行程序集路径
(2) 传递IO.Path.GetDirectoryName
示例代码:
static void GetAppPath()
{
string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
Console.Wri...
分类:
其他好文 时间:
2014-06-18 06:16:29
阅读次数:
212
[WinError 2] 系统找不到指定的文件。
[cmd: ['g++', 'D:\\source-code\\sublime\\test.cpp', '-o', 'D:\\source-code\\sublime/test']]
[dir: D:\source-code\sublime]
[path: D:\program\basic\python3.4.0;C:\Windows\sys...
分类:
Windows程序 时间:
2014-06-18 00:56:24
阅读次数:
7280
首先必须要了解客户端跳转和服务器端跳转的区别:
客户端跳转: response.sendRedict(String path),地址栏发生改变。不能传递request属性。
服务器端跳转: 地址栏不发生改变。能传递request属性。
request属性范围: 只有在服务器端跳转以后,所有设置的内容才会停留下来。
session属性范围: 不管是客户端跳转还是服务器端跳转,只要是是属性设...
分类:
编程语言 时间:
2014-06-17 22:27:29
阅读次数:
331
“WARN Please initialize the log4j system properly“的解决办法...
分类:
其他好文 时间:
2014-06-17 22:18:27
阅读次数:
375
find命令是个用于搜索文件的命令,他的语法格式:find [path] [options] [tests] [actions]1、path部分是你指定的路径,可以是绝对路径,如/usr/bin,也可以是相对路径,如 . 。如果需要,也可以指定多个路径,如 find /var /home2、opti...
分类:
系统相关 时间:
2014-06-17 21:00:09
阅读次数:
402
linux命令无效-bash:ls:commandnotfound一次重启后开机,基本所有的命令都不可用,只有少数的命令可用[root@centos-1~]#ll-bash:ls:commandnotfound[root@centos-1~]#pwd/root[root@centos-1~]#shutdown-rnow-bash:shutdown:commandnotfound[root@centos-1~]#export$PATH-bash:..
分类:
系统相关 时间:
2014-06-17 17:45:16
阅读次数:
368
今天第一天开始学JAVA,时间:2014年6月17日
学习内容:1.java环境的架设
2.JAVA基本数据类型
1.JAVA环境的架设
1.要先去下载JDK,下载地址
2.安装完成后,设置环境变量
1.1环境变量的设置
1.右键-我的电脑-属性-高级-环境变量-系统变量,找到PATH,在里面..
分类:
编程语言 时间:
2014-06-17 17:19:17
阅读次数:
277