摘要: 一、将字符串转换为其他类型 str := "hello world" //将字符串转换为字符切片 强制类型转换 slice := []byte(str) fmt.Println(slice) fmt.Printf("%c\n", slice) //字符切片转换为字符串 强制类型转换 str2 := 阅读全文
posted @ 2020-03-28 10:10 RIP_KOBE 阅读(492) 评论(0) 推荐(0) 编辑