ChinaUnix.net
相关文章推荐:

multiline strings not supported

1.String tempStr="abc"+"c"; 2.StringBuffer sb=sb.append("xx") 3.StringBuffer sb=sb.insert(sb.length(),"xx") String buffers are used by the compiler to implement the binary string concatenation operator +. For example, the code: x = "a" + 4 + "c" is compiled to the equivalent of: x = new StringBuffer().append("a").append(4).append("c").toString() The principal operations on a String...

by heavenflying - Java文档中心 - 2007-01-11 17:53:38 阅读(665) 回复(0)

相关讨论

chapter 5: strings 本章介绍了字符串的基本知识和常用的字符串的方法。 本章强调了字符串是常量,是不可变的序列。 一个实用的描述字符串的方法:raw strings。用r来修饰。例如r'c:\new\test.dat'。 三个引号括起来的表示多行文本。例如''' this is multiline strings.''' Unicode strings 的表示方法用u,例如:u'abc'。 字符串的索引。例如s[i:j],表示从i到j,但不包含j,例如s[1:3],表示1到2。注意索引从0开始。 ...

by gogo_u - BSD文档中心 - 2006-11-20 15:49:23 阅读(1001) 回复(0)

# strings /etc/lvmtab /dev/vg00 ? $C /dev/dsk/c1t2d0 /dev/dsk/c2t2d0 /dev/vgdata /dev/dsk/c5t0d1 /dev/dsk/c7t0d1 /dev/vgdata2 /dev/dsk/c5t0d2 /dev/dsk/c7t0d2 请教各位,为什么我的机器会有“? $c” :oops:

by 水平低 - HP-UX - 2004-05-26 11:19:03 阅读(3485) 回复(7)

4.5 StringIO -- Read and write strings as files This module implements a file-like class, StringIO, that reads and writes a string buffer (also known as memory files). See the description of file objects for operations (section 3.9 ). class StringIO( [buffer]) When a StringIO object is created, it can be initialized to an existing string by passing the string to the constructor. ...

by speakitnow - Python文档中心 - 2008-08-20 15:01:54 阅读(1986) 回复(0)

string在python中是一个专门的类型,而不像c中,只是一种char数组。因此有一大堆专门用于string操作的函数。string在 python是属于“序列”这一大类,“序列”中还有list和tuple,它们都有类似的操作。string是不可变的,也就是你可以用:S[0]的形 式把S中的第一个字符提取出来,但不能用S[0]="c"这种方式把S中的第一个字符改为"c"。而list就可以。c中的字符数组也可以。内置函数 str(object)可以把任何类型的对象用字符串表示出来...

by marlboro027 - Python文档中心 - 2007-03-30 15:24:12 阅读(1118) 回复(0)

string在python中是一个专门的类型,而不像c中,只是一种char数组。因此有一大堆专门用于string操作的函数。string在python是属于“序列”这一大类,“序列”中还有list和tuple,它们都有类似的操作。string是不可变的,也就是你可以用:S[0]的形式把S中的第一个字符提取出来,但不能用S[0]="c"这种方式把S中的第一个字符改为"c"。而list就可以。c中的字符数组也可以。内置函数str(object)可以把任何类型的对象用字符串...

by newsim - Python文档中心 - 2006-02-21 23:08:18 阅读(1268) 回复(0)

对字符串的操纵有很多方法,我就不多说了,这几天在读bash的guide,发现了一个有意思的,(或许大家都知道,我还是发出来,就算灌水吧 :mrgreen: ) [code] # Is it possible to index from the right end of the string? echo ${stringZ:-4} # abcABC123ABCabc # Defaults to full string, as in ${parameter:-default}. # However . . . echo ${stringZ:(-4)} # Cabc echo ${s...

by 寂寞烈火 - Shell - 2008-08-20 10:17:44 阅读(5365) 回复(5)

solaris 10 上安装oracle 9i 运行 ./runInstaller提示 Errors native VM not supported:em12:

by ibmsoft - Solaris - 2007-03-17 23:51:47 阅读(1387) 回复(4)

import failed: Disk is sharable, operation not supported 2*V240+2*SUN 3510 VCS架构 one logic drive status failed, i relpace the disk and rebuild the volume,then import the same device group,which indicates the following errors: import failed: Disk is sharable, operation not supported Reference: Exact Error Message vxvm:vxdg: ERROR: Disk group oradg: import failed: Disk is sharable, o...

by sunyeait - Solaris文档中心 - 2006-04-25 21:52:31 阅读(2529) 回复(0)

jsp中使用连接池后,mysql就不能使用PreparedStatement了? 连接池使用的驱动是 com.mysql.jdbc.Driver,使用org.git.mm.mysql.Driver总是提示找不到驱动!版本是3.0.16

by xieguoking - MySQL - 2005-11-08 11:52:00 阅读(1423) 回复(0)

Protocol https not supported or disabled in libcurl ,我用curl请求https的时候出现这个问题。请高手知道

by xuhao518 - Web开发 - 2008-03-02 01:49:42 阅读(4555) 回复(0)