码迷,mamicode.com
首页 >  
搜索关键字:python string    ( 227915个结果
JAVA字符串格式化-String.format()的使用(转)
常规类型的格式化String类的format()方法用于创建格式化的字符串以及连接多个字符串对象。熟悉C语言的同学应该记得C语言的sprintf()方法,两者有类似之处。format()方法有两种重载形式。format(String format, Object... args) 新字符串使用本地语...
分类:编程语言   时间:2014-07-22 23:17:33    阅读次数:497
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
asp.net html table to DataTable
添加引用http://htmlagilitypack.codeplex.com/downloads/get/437941protected void Export(string content,string file) { HtmlDocument doc = new HtmlD...
分类:Web程序   时间:2014-07-22 23:17:32    阅读次数:426
和诚智达汽车服务面试
2014年4.27相关技术问题String str=new String("ss"); 生成了几个对象求菲波数据 1,1,2,3,5......,第100项的值张三到某店买巧克力,店主领他看四个箱子,每个箱子上都写—句话。第一个箱子:“所有箱子中都有荔枝。”第二个箱子:“本箱中有苹果。”第三个箱子:...
分类:其他好文   时间:2014-07-22 23:17:15    阅读次数:441
Silver 操作Cookie
public class CookiesUtils{ public static void SetCookie(String key, String value) { SetCookie(key, value, null, null, null, false); } ...
分类:其他好文   时间:2014-07-22 23:16:34    阅读次数:339
webdriver 的CSV数据驱动
1.获取CSV数据内容public static Object[][] getFromCSV(String filename) { if (!(new File(filename)).exists()){ return null; } Object[][] content; CSVReader r....
分类:Web程序   时间:2014-07-22 23:16:34    阅读次数:467
【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
gui组件
//guI; graphics user interfaceimport javax.swing.*;import java.awt.*; public class Main { public static void main(String[] args) { JFra...
分类:其他好文   时间:2014-04-29 16:48:47    阅读次数:313
StringUtils 类的使用
StringUtils 方法的操作对象是 java.lang.String 类型的对象,是 JDK 提供的 String 类型操作方法的补充,并且是 null 安全的(即如果输入参数 String 为 null 则不会抛出 NullPointerException ,而是做了相应处理,例如,如果输入...
分类:其他好文   时间:2014-04-29 16:45:47    阅读次数:387
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!