码迷,mamicode.com
首页 > 其他好文 > 详细

replace()替换函数

时间:2019-08-16 00:43:54      阅读:97      评论:0      收藏:0      [点我收藏+]

标签:法语   sof   family   --   语法   soft   str   enter   new   

replace()方法语法:

str.replace(old, new[, max])
参数
old -- 将被替换的子字符串。
new -- 新字符串,用于替换old子字符串。
max -- 可选字符串, 替换不超过 max 次

replace()替换函数

标签:法语   sof   family   --   语法   soft   str   enter   new   

原文地址:https://www.cnblogs.com/qmjy/p/11361147.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!