码迷,mamicode.com
首页 >  
搜索关键字:param    ( 11285个结果
leetcode:Valid Palindrome
1、注意空字符串的处理;2、注意是alphanumeric字符;3、字符串添加字符直接用+就可以; 1 class Solution: 2 # @param s, a string 3 # @return a boolean 4 def isPalindrome(self, ...
分类:其他好文   时间:2014-10-17 01:34:53    阅读次数:216
记账凭证
/** * 记账标记0未记账 1 已记账 * @param string $vno_id * @param string $falg */ public function signBookFlag($vno_id,$falg) { if...
分类:其他好文   时间:2014-10-17 00:28:33    阅读次数:344
(原创) cocos2d-x 3.0+ lua 学习和工作(4) : 公共函数(8): 生成只读table
这个函数的作用是:生成只读table。--[[ -- 生成只读table-- @param table t 需要不允许修改的table example: local tb = {"星期一", "星期二", "星期日"} local days = readOnly( tb )...
分类:其他好文   时间:2014-10-16 22:36:13    阅读次数:172
hashmap的遍历
import java.util.HashMap;import java.util.Iterator;public class hash { /** * @param args */ public static void main(String[] args) { // TODO Auto-g...
分类:其他好文   时间:2014-10-16 16:40:02    阅读次数:193
java 检查是否是数组 检查是否是空数组 检查数组是否包含某个元素
/** * Determine whether the given object is an array: * either an Object array or a primitive array. * @param obj the object to check ...
分类:编程语言   时间:2014-10-16 07:03:22    阅读次数:301
java 检查抛出的异常是否是要捕获的检查性异常或运行时异常或错误
/** * Return whether the given throwable is a checked exception: * that is, neither a RuntimeException nor an Error. * @param ex the t...
分类:编程语言   时间:2014-10-16 06:49:52    阅读次数:259
java 判断是不是检查性异常
/** * Return whether the given throwable is a checked exception: * that is, neither a RuntimeException nor an Error. * @param ex the t...
分类:编程语言   时间:2014-10-16 06:16:22    阅读次数:207
leetcode:Reverse Words in a String
1 class Solution: 2 # @param s, a string 3 # @return a string 4 def reverseWords(self, s): 5 ss = s.split(" ") 6 ss = fil...
分类:其他好文   时间:2014-10-16 01:05:21    阅读次数:146
network: Android 网络判断(wifi、3G与其他)
public class NetworkProber {  /**  * 网络是否可用  *  * @param activity  * @return  */  public static boolean isNetworkAvailable(Context context) {  ConnectivityManager connectivity = (Connectivit...
分类:移动开发   时间:2014-10-15 19:20:41    阅读次数:154
js表单验证
<pre?code_snippet_id="464407"?snippet_file_name="blog_20140905_1_9753719"?name="code"?class="javascript">/**?? ?*?验证时间?? ?*?@param?dataValue?格式为:YYYY-MM-DD?? ?*?@returns?...
分类:Web程序   时间:2014-10-15 16:56:01    阅读次数:257
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!