From e1f322417c61b2a880c3efeee68e09383920f434 Mon Sep 17 00:00:00 2001 From: ZhaoJunchi Date: Mon, 9 May 2022 22:19:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=A4=84=E9=87=8D=E5=A4=8D=E8=AF=AD=E5=8F=A5=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Day004: 数据-Go基本数据,字符串类型处重复语句删除 --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)