码迷,mamicode.com
首页 >  
搜索关键字:python for 循环 find 字符串    ( 275031个结果
JAVA字符串格式化-String.format()的使用(转)
常规类型的格式化String类的format()方法用于创建格式化的字符串以及连接多个字符串对象。熟悉C语言的同学应该记得C语言的sprintf()方法,两者有类似之处。format()方法有两种重载形式。format(String format, Object... args) 新字符串使用本地语...
分类:编程语言   时间:2014-07-22 23:17:33    阅读次数:497
VC/MFC分割字符串(SplitString)返回CStringArray
引自:http://bbs.csdn.net/topics/60321228原版:CStringArray*SplitString(CStringstring,charpattern){CStringArray*strArray=newCStringArray();CStringstrTemp;ch...
分类:其他好文   时间:2014-07-22 23:17:33    阅读次数:1134
python之socket模块
UDPclient#!/usr/bin/env python2.7#-*-coding:utf-8 -*-import sockets=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)s.sendto("hello",("localhost",8001)...
分类:编程语言   时间:2014-07-22 23:17:33    阅读次数:507
[Leetcode] Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:其他好文   时间:2014-07-22 23:16:14    阅读次数:408
[leetcode] Anagrams
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.输入一个字符串数组,返回所有回文构词法(anagrams)的字符串,所谓回...
分类:其他好文   时间:2014-07-22 23:15:54    阅读次数:440
UVALive 6577 Binary Tree 二叉树的LRU串
今天继续攒人品。。。真开心啊O(∩_∩)O~~各种身体不舒服~~https://icpcarchive.ecs.baylor.edu/external/65/6577.pdf题意是这样的,现在有一个向下无限延伸的二叉树。然后输入起点(通过只含LRU的字符串S,从根结点开始执行)。LRU分别表示往左儿...
分类:其他好文   时间:2014-07-22 23:15:54    阅读次数:550
Sql2008中使用DataTable作为存储过程的参数
使用DataTable作为存储过程的参数最近工作中写了几个存储过 程,需要向存储过程中传递字符串,因为SQL Server 2000中没有内置类似于 split 的函数,只好自己处理,将前台数据集中的一列用逗号拆分存到一个List中,再转化为字符串传给存储过程,很是麻烦。今天看了下SQL Serve...
分类:数据库   时间:2014-04-29 17:24:46    阅读次数:434
FluentData -Micro ORM with a fluent API that makes it simple to query a database 【MYSQL】
官方地址:http://fluentdata.codeplex.com/documentationMYSQL:MySQL through theMySQL Connector .NET driver.连接字符串:Server=127.0.0.1;Database=testDB;Uid=root;Pw...
分类:数据库   时间:2014-04-29 17:23:46    阅读次数:594
【Python】Eclipse和pydev搭建Python开发环境
参考资料: http://www.dotnet120.com/page/10545/ 1.准备工作: 下载32位的JDK6 Java的开发包 下载32位的Eclipse 下载Python 2.x 2.安装JDK6 3.安装Eclipse和Python 4.给Eclipse安装PyDev插件 在Hel...
分类:编程语言   时间:2014-04-29 17:23:46    阅读次数:432
six solutions to a single symmetrical problem
Problem description:given a string, find the longest palindrome string in itSolution:1.brute force O(n^3)just enumerate start and end of the substring...
分类:其他好文   时间:2014-04-29 17:22:46    阅读次数:308
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!