Ruby字符串操作总结
摘要:字符串的整理如下: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->1、字符串定义与产生 str1 = 'Hello world' str2 = "Hello world" #双引号比单引号定义的字符串更加强大,如可提供转移字符等 str...
阅读全文
posted @ 2007-09-28 01:22