摘要:
package main import ( "fmt" "strconv" "strings" ) func main() { //统计字符串的长度,按字节进行统计 var str string = "hello golang 陈伟浩" fmt.Println(len(str)) //对字符串进行遍 阅读全文
posted @ 2022-07-18 22:03
5656923
阅读(87)
评论(0)
推荐(0)
摘要:
package main import ( "fmt" "time" ) func main() { now := time.Now() fmt.Printf("%v ~~~ 对应的类型为:%T", now, now) fmt.Printf("年:%v \n", now.Year()) //年 fm 阅读全文
posted @ 2022-07-18 21:36
5656923
阅读(168)
评论(0)
推荐(0)

浙公网安备 33010602011771号