摘要: ```go package utils import "fmt" import "strconv" import "strings" var str string = "学golang使我快乐!" // 关于string的常用函数 // 1. len(str) 内建函数,返回字符串长度,按字节,1个 阅读全文
posted @ 2019-01-29 23:32 苏幕遮_凌枫 阅读(1308) 评论(0) 推荐(0) 编辑
摘要: 在函数外部使用形如: 这样语句会出现 syntax error: non declaration statement outside function body 阅读全文
posted @ 2019-01-29 21:35 苏幕遮_凌枫 阅读(1916) 评论(0) 推荐(0) 编辑