首页 > 编程语言
docs/cplat/rt/python/fetchurl - 百度开放云平台
docs/cplat/rt/python/fetchurl - 百度开放云平台用python爬虫抓站的一些技巧总结 - OPEN 开发经验库
分类:编程语言   时间:2015-07-17 13:39:09    收藏:0  评论:0  赞:0  阅读:240
SpringMVC 添加字段校验(注解的方式)
1 import java.lang.annotation.ElementType; 2 import java.lang.annotation.Retention; 3 import java.lang.annotation.RetentionPolicy; 4 import java.lang....
分类:编程语言   时间:2015-07-17 13:36:59    收藏:0  评论:0  赞:0  阅读:499
《算法导论》读书笔记--第二章 2.2 分析算法
2.2分析算法分析算法的结果意味着预测算法需要的资源。虽然有时候关心内存、通讯或者计算机硬件,但是通常我们想度量的是时间。在分析算法之前,要有一个实现技术的模型,包括描述所用资源及其代价的模型。我们假定一种通用的单处理器计算模型—随机访问机(random-access machine,RAM)来作为...
分类:编程语言   时间:2015-07-17 13:34:59    收藏:0  评论:0  赞:0  阅读:351
Java网络编程
.TCP程序设计在JAVA中使用Socket(即套接字)完成TCP程序的开发,使用此类可以方便的建立可靠的,双向的,持续的,点对点的通信连接。在Socket的程序开发中,服务器端使用ServerSocke等待客户端的连接,对于java的网络程序来讲,每一个客户端都使用一个Socket对象表示。.Se...
分类:编程语言   时间:2015-07-17 13:34:19    收藏:0  评论:0  赞:0  阅读:188
Java基础—io--自画的框图
分类:编程语言   时间:2015-07-17 13:32:49    收藏:0  评论:0  赞:0  阅读:209
中奖概率算法(php 可用于刮刮卡,大转盘等抽奖算法)
php中奖概率算法,可用于刮刮卡,大转盘等抽奖算法。用法很简单,代码里有详细注释说明,一看就懂 $proCur) { $randNum = mt_rand(1, $proSum); if ($randNum array('id'=>1,'prize'=>'平板电脑'...
分类:编程语言   时间:2015-07-17 13:32:39    收藏:0  评论:0  赞:0  阅读:272
VC++中MCI播放音频文件 【转】
源文 : http://blog.csdn.net/dancewyr/article/details/7183572MCI播放mp3音频文件例程源文件中需要包含头文件 Mmsystem.h,在Project->Settings->Link->Object/libray module中加入库 Winm...
分类:编程语言   时间:2015-07-17 13:27:39    收藏:0  评论:0  赞:0  阅读:358
亮点面试题&&实现Singleton(辛格尔顿)模式-JAVA版本
称号:设计一个类。我们只能产生这个类的一个实例。(来自《剑指Offer》)解析:仅仅能生产一个实例的类是实现Singleton(单例)模式的类型。因为设计模式在面向对象程序设计中起着举足轻重的作业,在面试过程中非常多公司都喜欢问一些与设计模式相关的问题。在经常使用的模式中,Singleton是唯一一...
分类:编程语言   时间:2015-07-17 13:25:49    收藏:0  评论:0  赞:0  阅读:205
《python核心编程》笔记——杂项
python语句默认会给每一行添加一个换行符,只要在最后加一个逗号就能改变这种行为若函数里没有return就自动返回None对象PEP(python增强提案简称)http://python.org/dev/pepsdir()显示对象属性,如果没有参数,显示全局变量的名字help()显示文档字符串,没...
分类:编程语言   时间:2015-07-17 13:22:49    收藏:0  评论:0  赞:0  阅读:157
在Python的Django框架中加载模版的方法
在Python的Django框架中加载模版的方法 为了减少模板加载调用过程及模板本身的冗余代码,Django 提供了一种使用方便且功能强大的 API ,用于从磁盘中加载模板, 要使用此模板加载API,首先你必须将模板的保存位置...
分类:编程语言   时间:2015-07-17 12:18:49    收藏:0  评论:0  赞:0  阅读:230
Swift2.0语言教程之函数的返回值与函数类型
Swift2.0语言教程之函数的返回值与函数类型 Swift2.0中函数的返回值 根据是否具有返回值,函数可以分为无返回值函数和有返回值函数。以下将会对这两种函数类型进行讲解。 Swift2.0中具有一个返回值的函数 开发者希...
分类:编程语言   时间:2015-07-17 12:18:19    收藏:0  评论:0  赞:0  阅读:125
进程VS.线程-笔记
资料来源: http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/001397567993007df355a3394da48f0bf14960f0c78753f000 1、Apache最早就是采用多进程模式 2、IIS服务器默认采用...
分类:编程语言   时间:2015-07-17 12:17:40    收藏:0  评论:0  赞:0  阅读:266
设计模式:单例模式的写法(基础写法和线程安全写法)
单例模式的写法很多,先给出一种最基础的写法: (A种写法): package singleton; public class SingletonInstance { private static SingletonInstance mSingletonInstance = null; // 特意将构造函数设置成 private,防止外部使用者new SingletonInstance...
分类:编程语言   时间:2015-07-17 12:14:29    收藏:0  评论:0  赞:0  阅读:287
[LeetCode][Java] Unique Paths II
题目: Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 respectively ...
分类:编程语言   时间:2015-07-17 12:12:39    收藏:0  评论:0  赞:0  阅读:214
[LeetCode][Java] Minimum Path Sum
题目: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note: You can only move either down ...
分类:编程语言   时间:2015-07-17 12:11:09    收藏:0  评论:0  赞:0  阅读:281
Swift2.0语言教程之函数的返回值与函数类型
Swift2.0语言教程之函数的返回值与函数类型...
分类:编程语言   时间:2015-07-17 12:10:10    收藏:0  评论:0  赞:0  阅读:254
[LeetCode][Java] Valid Number
题目: Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It is intended for the problem statement to b...
分类:编程语言   时间:2015-07-17 12:07:44    收藏:0  评论:0  赞:0  阅读:313
字符串匹配-KMP算法学习笔记
......
分类:编程语言   时间:2015-07-17 12:07:43    收藏:0  评论:0  赞:0  阅读:131
LeetCode--Majority Element II & 多数投票算法
题目 Given an integer array of size n, find all elements that appear more than ? n/3 ? times. The algorithm should run in linear time and in O(1) space. 相似题目及多数投票算法第一眼看到这个题,相信许多人都恩给你联想到另一个题目: 给...
分类:编程语言   时间:2015-07-17 12:05:00    收藏:0  评论:0  赞:0  阅读:3152
linux下启动java程序的通用脚本2
一、start.sh #!/bin/bash cd `dirname $0` BIN_DIR=`pwd` cd .. DEPLOY_DIR=`pwd` CONF_DIR=$DEPLOY_DIR/conf SERVER_NAME=`sed '/server.name/!d;s/.*=//' conf/server.properties | tr -d '\r'` SE...
分类:编程语言   时间:2015-07-17 12:02:39    收藏:0  评论:0  赞:0  阅读:401
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!