码迷,mamicode.com
首页 >  
搜索关键字:fun    ( 10813个结果
7 static关键字
class Person { static int i; static void fun() { System.out.println("我是静态函数"); } } 在静态函数中不能使用非静态的变量!! 以下这个没问题: class Person { String name; void talk() ...
分类:其他好文   时间:2016-09-03 16:40:27    阅读次数:152
tomcat检测脚本
最近写了个简单的tomcat检测脚本。可以进行简单的进程和页面检测。#!/bin/bash #author:wangxingwei #date:2015/9/1 #fun:检测tomcat进程和页面是否正常 StartTomcat=/home/aspire/apps/tomcat/bin/startup.sh TomcatCache=/home/aspire/apps/tomcat/work TomcatCheckLog=/hom..
分类:其他好文   时间:2016-09-01 16:39:52    阅读次数:161
PHP基于数组的分页函数(核心函数array_slice())
<?php /** * 数组分页函数 核心函数 array_slice * 用此函数之前要先将数据库里面的所有数据按一定的顺序查询出来存入数组中 * $count 每页多少条数据 * $page 当前第几页 * $array 查询出来的所有数组 * order 0 - 不变 1- 反序 */ fun ...
分类:编程语言   时间:2016-09-01 13:06:30    阅读次数:221
Gdb 常用命令
命令名称 含义 示例 b fun_name 设置断点 b main b 行号 if 条件 设置带条件断点 如:b 11 if i==10 n 下一行 n s 跳入函数内部 s sum finish(fin) 执行完当前函数 fin until num 执行到比当前大的行号 until 15 list ...
分类:数据库   时间:2016-09-01 11:07:42    阅读次数:181
Python 学习笔记 - 装饰器
这一节了解了一些装饰器的简单使用。首先来看一个预备知识,把一个函数当做参数,传入另外一个函数比如说我传递outer(f1),我传入的是f1的内存地址,a=func()其实执行了f1()这个函数,并把返回值赋给了a,因此当我打印print(a),他会输出hee>>>defouter(func): print(fun..
分类:编程语言   时间:2016-08-31 15:52:54    阅读次数:207
MySQL通过函数获取字符串汉字拼音首字母大写字符串
DELIMITER $$ DROP FUNCTION IF EXISTS `Fun_GetPY`$$ CREATE FUNCTION `HIS`.`Fun_GetPY` (in_string VARCHAR(21845)) RETURNS VARCHAR(21845) CHARSET utf8 BE ...
分类:数据库   时间:2016-08-28 16:25:57    阅读次数:201
ex1-第一个程序 ”helloworld”
代码: print("Hello world.")print("Hello again.")print("I like typing this.")print("This is fun.")print('Yay! Printing.') # 单引号跟双引号的效果一样的~print("I'd rath ...
分类:其他好文   时间:2016-08-28 06:30:17    阅读次数:194
【转】 SIFT算法详解
尺度不变特征变换匹配算法详解Scale Invariant Feature Transform(SIFT)Just For Fun zdd zddmail@gmail.com 对于初学者,从David G.Lowe的论文到实现,有许多鸿沟,本文帮你跨越。 1、SIFT综述 尺度不变特征转换(Scal ...
分类:编程语言   时间:2016-08-28 01:13:06    阅读次数:298
【LeetCode】81. Search in Rotated Sorted Array II
题目: Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a fun ...
分类:其他好文   时间:2016-08-27 15:26:39    阅读次数:99
【POJ 1487】Single-Player Games(建方程高消)
Single-Player Games Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 1387Accepted: 377DescriptionPlaying games is the most fun if other people take part. But other players are not always availa...
分类:其他好文   时间:2016-08-22 21:51:22    阅读次数:217
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!