码迷,mamicode.com
首页 >  
搜索关键字:python for 循环 find 字符串    ( 275031个结果
LeetCode - Best Time to Buy and Sell 3
这道题在前两个的基础上做稍微改进就可以。下面是AC代码: 1 /** 2 * Design an algorithm to find the maximum profit. You may complete at most two transactions. 3 * @pa...
分类:其他好文   时间:2014-07-22 23:01:13    阅读次数:251
批处理判断是否特殊字符的实现代码(转自:www.jbxue.com)
分享一个批处理脚本,判断是不是特殊字符。原文地址:http://www.jbxue.com/article/17770.html用于判断输入的一个字符是否为"&^>中的符号。注意,匹配字符串中的空格不可省略!批处理代码:@echo offset Input=S set /p Input=Please...
分类:其他好文   时间:2014-07-22 23:00:34    阅读次数:394
LeetCode5:Longest Palindromic Substring
题目: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique lo...
分类:其他好文   时间:2014-05-01 20:07:13    阅读次数:429
(转)JavaScript中判断对象类型的种种方法
我们知道,JavaScript中检测对象类型的运算符有:typeof、instanceof,还有对象的constructor属性: 1) typeof 运算符 typeof 是一元运算符,返回结果是一个说明运算数类型的字符串。如:"number","string","boolean","object...
分类:编程语言   时间:2014-05-01 19:46:51    阅读次数:399
15个实用的Linux find命令示例
妈咪,我找到了! -- 15个实用的Linux find命令示例http://www.oschina.net/translate/15-practical-linux-find-command-examples?p=2#comments爹地,我找到了! -- 15个极好的Linux find命令示例...
分类:系统相关   时间:2014-05-01 19:41:30    阅读次数:429
常用C库函数小结
1. sprintf 原型:int sprintf( char *buffer, const char *format, [ argument] … ); 功能:将格式化后的字符串写在buffer中,常用于把数字打印在字符串中;连接字符串。 参数:buffer - 待写入缓冲区; format - ...
分类:其他好文   时间:2014-05-01 19:32:52    阅读次数:323
一道线程的面试题
线程1循环3次,线程2循环6次,线程3循环9次,接着又回到线程1循环3次,线程2循环6次,线程3循环9次...如此循环50次 1 package ch03; 2 3 import java.util.concurrent.locks.Condition; 4 import java.uti...
分类:编程语言   时间:2014-05-01 19:25:26    阅读次数:376
Keyboard input
Keyboard inputPython provides a build-in function called raw_input (in version 2.x) that gets input from the keyboard. In Python 3.x we use input(). W...
分类:其他好文   时间:2014-05-01 19:23:26    阅读次数:392
[cocos2dx 3.0 + xcode]坑点记录
1: 新项目创建 1.下载最新Python,安装 2.解压引擎包 3.运行终端,切换到引擎目录(直接cd拖动文件夹到光标即可得到路径) 4.按照文档例子: $ cd cocos2d-x $ ./setup.py $ source FILE_TO_SAVE_S...
分类:其他好文   时间:2014-05-01 19:16:21    阅读次数:319
c 函数及指针学习 10
标准库函数1算数运算stdlib.h2随机数stdlib.h3字符串转化stdlib.h4数学函数 math.h5日期和时间 time.h6信号 signal.h7打印可变参数列表stdarg.h8断言 assert.h抽象数据类型在数据结构中比较仔细运行时环境没看来自为知笔记(Wiz)
分类:其他好文   时间:2014-05-01 19:06:09    阅读次数:305
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!