diff --git a/README.md b/README.md index aec4e65..abb2c51 100644 --- a/README.md +++ b/README.md @@ -563,7 +563,6 @@ - 从逻辑上说,一个字符串值表示一段文本。 在内存中,一个字符串存储为一个字节 (byte)序列。 - Go语言中可以使用反引号或者双引号来定义字符串。反引号表示原生的字符串,不进行转义。 - Go语言中的string类型是一种值类型,存储的字符串是不可变的,如果要修改string内容需要将string转换为[]byte或[]rune,并且修改后的string内容是重新分配的。 - - Go语言中的string类型是一种值类型,存储的字符串是不可变的,如果要修改string内容需要将string转换为[]byte或[]rune,并且修改后的string内容是重新分配的。 - 字符串是字节的定长数组。字符串的零值是为长度为零的字符串,即空字符串 ""。 - 一般的比较运算符(==、!=、<、<=、>=、>)通过在内存中按字节比较来实现字符串的对比。可以通过函数 len() 来获取字符串所占的字节长度,例如:len(str)。 - 在Go中,字符串值是UTF-8编码的, 甚至所有的Go源代码都必须是UTF-8编码的。 @@ -3796,4 +3795,4 @@ [![Forkers @LearnGolang/365Golang](https://reporoster.com/forks/LearnGolang/365Golang)](https://github.com/LearnGolang/365Golang/network/members) -[![Stargazers over time](https://starchart.cc/LearnGolang/365Golang.svg)](https://starchart.cc/LearnGolang/365Golang) \ No newline at end of file +[![Stargazers over time](https://starchart.cc/LearnGolang/365Golang.svg)](https://starchart.cc/LearnGolang/365Golang)