摘要: test1.py中,当分母为0的时候,调用系统退出#!/usr/bin/pythonimport sysdef division(a=1, b=1): if b==0: print 'b eq 0' sys.exit(1) else: re... 阅读全文
posted @ 2015-04-03 21:41 phlsheji 阅读(573) 评论(0) 推荐(0) 编辑
摘要: Mustache 使用心得总结前言:之前的一个项目里面就实用到这个前台的渲染模版,当时挺忙的也没时间抽出时间总结一下,刚好上周项目里又用到这个轻量型的渲染模版,真心感觉非常好用,因此就总结一下使用心得,算是一个入门级别的指引吧。1. Mustache 概述Mustache是基于JavaScript实... 阅读全文
posted @ 2015-04-03 21:03 phlsheji 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 题目Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (... 阅读全文
posted @ 2015-04-03 19:26 phlsheji 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 将excel文件从jsp页面导入到数据库,先将文件上传到server,然后读取,最后删除掉上传//要加encType="multipart/form-data"批量导入项目0) { com.jspsmart.upload.File file = su.getFiles().getFile(0); ... 阅读全文
posted @ 2015-04-03 18:16 phlsheji 阅读(1189) 评论(0) 推荐(0) 编辑
摘要: http://www.infiniteskills.com/training/learning-computer-forensics.htmlhttps://www.youtube.com/watch?v=nxpu7ZeK2fMhttps://www.youtube.com/results?sear... 阅读全文
posted @ 2015-04-03 16:56 phlsheji 阅读(606) 评论(0) 推荐(0) 编辑
摘要: Validate Binary Search TreeTotal Accepted:23828Total Submissions:91943My SubmissionsGiven a binary tree, determine if it is a valid binary search tree... 阅读全文
posted @ 2015-04-03 15:18 phlsheji 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 一、什么是 AOP。AOP(Aspect Orient Programming),也就是面向切面编程。能够这样理解,面向对象编程(OOP)是从静态角度考虑程序结构,面向切面编程(AOP)是从动态角度考虑程序执行过程。二、AOP 的作用。经常通过 AOP 来处理一些具有横切性质的系统性服务,如事物管理... 阅读全文
posted @ 2015-04-03 14:26 phlsheji 阅读(149) 评论(0) 推荐(0) 编辑
摘要: windows应用程序是基于消息驱动的。各种应用程序对各种消息作出响应从而实现各种功能。 windows钩子是windows消息处理机制的一个监视点,通过安装钩子能够达到监视指定窗体某种类型的消息的功能。所谓的指定窗体并不局限于当前进程的窗体,也能够是其它进程的窗体。当监视的某一消息到达指定的窗体... 阅读全文
posted @ 2015-04-03 13:21 phlsheji 阅读(300) 评论(0) 推荐(0) 编辑
摘要: http://hljqfl.blog.163.com/blog/static/40931580201122210573364/在写ASP.Net程序的时候,我们常常遇到跳转页面的问题,我们常常使用Response.Redirect 做ASP.NET框架页跳转,假设客户要在跳转的时候使用提示,这个就不... 阅读全文
posted @ 2015-04-03 12:24 phlsheji 阅读(1687) 评论(0) 推荐(0) 编辑
摘要: 1. 单像素边框CSS表格这是一个非经常常使用的表格样式。源码: Info Header 1Info Header 2Info Header 3 Text 1AText 1BText 1C Text 2AText 2BText 2C2. 带背景图的CSS样式表格和上面差点儿相同,只是每一个格子里多了... 阅读全文
posted @ 2015-04-03 11:09 phlsheji 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: 抽象工厂模式(Abstract Factory Pattern)是工厂方法模式的进一步抽象,其英文原话"Provide an interface for creating families of related or dependent objects without specifying thei... 阅读全文
posted @ 2015-04-03 10:23 phlsheji 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 初始化异步树直接所有展开代码: $(function(){ $('#tt').tree({ url:'/treeInit', lines:true, onLoadSuccess:function(node,data){ var t = $(t... 阅读全文
posted @ 2015-04-03 09:33 phlsheji 阅读(289) 评论(0) 推荐(0) 编辑