go向上取整方法 math.ceil(),该方法接收一个浮点型(float64)参数,如果小数不为0则会将小数舍去,小数点前数字加一。如果除数和被除数都是int类型,需要手动转一下类型。错误写法...
时间戳转日期// 当前时间戳(time类型)
now := time.Now()
// 当天零点格式化日期
StartTime := time.Date(now.Year(), now.Mont...
slice := slice[0:0]
if 条件运算符• not 非{<!-- -->{if not .condition}} {<!-- -->{end}}
• and 与{<!-- --&g...
goroot go安装路径gopath 项目路径一般目录结构是bin:编译后的二进制可执行文件pkg:存放了go get的包的源码(我的是这样)分为全局路径和项目路径gomod依赖管理通过go....
1. Substr(str string, start int, length int) stringa := "abcde"
b := Substr(a, 1, 2)
f...
fmt.Sprintf()、Printf()、Fprintf()fmt.Sprintf()只格式化,不会输出到命令行。fmt.Printf()格式化输出
- 作者: 杨
- 时间:
- 分类: 正则
- 评论
$pattern = "/^[\x{4e00}-\x{9fa5}]{2,10}$/u";注意最后的u。u (PCRE_UTF8)此修正符打开一个与 perl 不兼容的附加功能...
ps -ef | grep stress | grep -v grep | cut -c 9-15 | xargs kill -9匹配关键字kill
prestoformat_datetime(from_unixtime(1510284058),'yyyy-MM-dd HH:mm:ss')hive:select from_unixtime(1...
- « 前一页
- 1
- ...
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- ...
- 17
- 后一页 »