摘要:cpu的计算 ps cpu的定义 man page中给出的定义: cpu utilization of the process in " . " format. Currently, it is the CPU time used divided by the time the process ha
阅读全文
posted @ 2018-05-19 23:41
05 2018 档案
摘要:cpu的计算 ps cpu的定义 man page中给出的定义: cpu utilization of the process in " . " format. Currently, it is the CPU time used divided by the time the process ha
阅读全文
posted @ 2018-05-19 23:41
摘要:问题 下面代码在有些机器上执行正常,有些机器上执行报错: python代码报错: line 277 print json.dumps(output) ^ SyntaxError: invalid syntax 这是一个奇怪的问题。 经过查看,报错的机器上的python版本是3。 所以,代码要做兼容处
阅读全文
posted @ 2018-05-19 21:43
摘要:thrift 最初是 facebook 开发使用的 rpc 通信框架,后来贡献给了 apache 基金会,出来得比较早,几乎支持所有的后端语言,使用非常广泛,是不可不知的一个网络框架。 和 grpc 一样,需要先定义通信协议,然后实现自己业务逻辑。 下面介绍其使用方法。 下载go thrift 库
阅读全文
posted @ 2018-05-19 11:54
摘要:本文结合使用场景简单介绍sql中的insert、update的使用。 以下是代码: 如果记录已经存在,则更新,否则插入新记录。 output: 第一次执行,记录不存在,update不影响任何行,然后尝试insert操作。 2018/04/30 22:15:13 sql: update tbl_hos
阅读全文
posted @ 2018-05-01 10:55
|
||