ruby字符串*替换


@article.mytitle.dup.tap{|p| b=@article.mytitle.length/3; p[b...b*2] = "*****"; }
阅读量: 538
发布于:
修改于: