go语言字符串替换 作者:时鹏亮 | 更新时间:07/18/2019 07:29:50首先,需要引入字符串的包:import "strings"然后,给你个示例:test = strings.Replace(test, "a", "abc", -1)-1表示全部替换,正数为替换次数[……]阅读全文