mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:06:41 +08:00
@@ -43,7 +43,9 @@ func main() {
|
||||
|
||||
`Contains` 判断字符串 `s` 是否包含 `substr`:
|
||||
|
||||
strings.Contains(s, substr string) bool
|
||||
```go
|
||||
strings.Contains(s, substr string) bool
|
||||
```
|
||||
|
||||
## 4.7.3 判断子字符串或字符在父字符串中出现的位置(索引)
|
||||
|
||||
|
Reference in New Issue
Block a user