标签: Golang错误处理

1 篇文章

函数补充&Golang错误处理
字符串中常用的系统函数 统计字符串的长度(按字节len(str))  package main ​ import "fmt" ​ func main() {  str := "ttdr"  fmt.Println("str len = ", len(str)) ​&nb…