var
s: string;
begin
s := 'DelPhi';
ShowMessage(s[4]); //P
s[4] := 'p';
ShowMessage(s); //Delphi
end;
读取与修改字符串中的字符
原创
©著作权归作者所有:来自51CTO博客作者JLee79的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:RGBToHSB
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
java中字符串拼接的多种方式
java中字符串拼接的多种方式
java 字符串拼接 -
java 怎么看报文的大小
【1】8种基本类型 -> 字符串(String) 1.(推荐)基本类型的变量名+"" 最简单的方法(工作中常用) strL = l + ""; 2.String类的静态方法String.valueOf(基本类型参数) strL = St
java 怎么看报文的大小 java 字符串 stream 数组