One - One Code All

Blog Content

go语言字符串切割为数组strings.Split

Go   2018-01-17 21:07:44

实例

import ”strings“

func main() {
	a := strings.Split("", ";")
	fmt.Printf("%d****%s****\n", len(a), a[0])
}



上一篇:Go遍历list(列表)
下一篇:golang判断map中key是否存在的方法

The minute you think of giving up, think of the reason why you held on so long.