Go Linux bash环境下 字符串strings.Trim截取无效
摘要:
result := "40%" if len(result) > 0 { fmt.Println("result:", result) numStr := strings.TrimSpace(strings.Trim(result, "%")) fmt.Println("numStr:", numS 阅读全文
posted @ 2023-02-04 22:34 zhangmingda 阅读(52) 评论(0) 推荐(0) 编辑