返回顶部
摘要: 字符串相关: 去掉首尾空格: 方法 strings.TrimSpace(): package main import ( "fmt" "strings" ) func main() { s1 := " hello world 你好 世界 " ret := strings.TrimSpace(s1) 阅读全文
posted @ 2020-04-29 00:08 Zcb0812 阅读(212) 评论(0) 推荐(0)