Go 语言的字符串是基本数据类型之一,实际上面通过字节数组实现,遍历中文的时候需要转化为rune(int32)类型,之后%c输出
基本类型-> string
fmt.Sprintf();//
strconv.XXX();
string -> 基本类型
strconv.XXX();// 转换的时候如果转换失败了,就会返回一个目的类型的默认值
|
sqmw
The awakening is always delayed, there seems to be some fog
|
|
|
|