OGNL全称为Object-Graph Navigation Language,可译为对象图导航语言。此处介绍的OGNL表达式内容,仅限于在struts2标签中应用,形式如下:以下为列举的一些应用形式:1.访问值栈中action的普通属性:2.访问值栈中对象的属性(setter getter方法):...
分类:
其他好文 时间:
2015-07-18 22:44:50
阅读次数:
209
一 本地分支操作 git log --oneline --decorate --graph --all git tag "v0" a1aba30 -- 第三个参数是tag名称,第四个参数是commit的hash值,可用第一个命令查看 git config --global alias.lol...
分类:
其他好文 时间:
2015-07-18 18:22:31
阅读次数:
123
//输入是指定的生成树的根结点,和一个矩阵表示的完全无向图public static Object [] Prim(int u0,double graph[][]) throws Exception{ for(int i =0;itempValue){ ...
分类:
编程语言 时间:
2015-07-18 16:50:20
阅读次数:
113
钢条切割问题的两种解法#ifndef IRON_CUT_PRB_H#define IRON_CUT_RPB_H#include int ironCutPrb(int *ironPrice,int Length); //这个是基于递规逄法的int ironCutPrb_optimize(int *ir...
分类:
其他好文 时间:
2015-07-17 20:57:42
阅读次数:
115
#ifndef LONG_PATH_H#define LONG_PATH_H#include#include#define MAX 65535int graphPath_longest(int (*Graph)[5],int Length,int origin,int destin ); void ...
分类:
其他好文 时间:
2015-07-17 20:54:10
阅读次数:
212
Problem Description
Alice and Bob are playing a game on an undirected graph with n (n is even) nodes and m edges. Every node i has its own weight Wv, and every edge e has its own weight We.
They...
分类:
其他好文 时间:
2015-07-17 19:00:04
阅读次数:
111
编写脚本:判断当前主机的CPU生产商如果其生产商为AuthenticAMD,就显示其为AMD公司如果其生产商为GenuineIntel,就显示其为Intel公司否则,就显示为unkown脚本编写如下:#!/bin/bashCPU=`grep‘Vendor_id‘/proc/cpuinfo|cut-d:-f2`if[$CPU==AuthenticAMD];thenecho"TheCPUisAMD"e..
分类:
系统相关 时间:
2015-07-17 07:17:42
阅读次数:
141
结巴”分词:做最好的Python分词组件出处:http://www.iteye.com/news/26184-jiebaimport jiebaseg_list = jieba.cut("我来到北京清华大学",cut_all=True)print "Full Mode:", "/ ".join(se...
分类:
编程语言 时间:
2015-07-16 19:11:08
阅读次数:
134
linux之cut用法cut是一个选取命令,就是将一段数据经过分析,取出我们想要的。一般来说,选取信息通常是针对“行”来进行分析的,并不是整篇信息分析的。(1)其语法格式为:cut[-bn][file]或cut[-c][file]或cut[-df][file]使用说明cut命令从文件的每一行剪切字节、字符和字段..
分类:
其他好文 时间:
2015-07-15 23:11:25
阅读次数:
160
一、仿淘宝评论购买记录隐藏部分用户名,以下代码亲测可用。function cut_str($string, $sublen, $start = 0, $code = 'UTF-8'){ if($code == 'UTF-8') { $pa = "/[\x01-\x7f]|[\xc2-\xd...
分类:
移动开发 时间:
2015-07-15 18:39:27
阅读次数:
132