上一页 1 2 3 4 5 6 ··· 21 下一页
摘要: Python中的变量并不直接存储值,而是存储了值的内存地址或者引用,假如为不同变量赋值为相同值,这个值在内存中只有一份,多个变量指向同一块内存地址。 阅读全文
posted @ 2019-02-26 18:05 lvmenghui001 阅读(3926) 评论(0) 推荐(0) 编辑
摘要: flask连接: "report": "redshift+psycopg2://user:pwd@jupitermob-rdata.cj0ro5bbcusg.us-east-1.redshift.amazonaws.com:5439/jupitermob" app.config["SQLALCHEM 阅读全文
posted @ 2019-01-24 17:36 lvmenghui001 阅读(270) 评论(0) 推荐(0) 编辑
摘要: go语言的time包 1. 组成 time.Duration(时长,耗时) time.Time(时间点)time.C(放时间点的管道)[ Time.C:=make(chan time.Time) ]time包里有2个东西,一个是时间点,另一个是时长 时间点的意思就是“某一刻”,比如 2000年1月1 阅读全文
posted @ 2019-01-23 14:55 lvmenghui001 阅读(259) 评论(0) 推荐(0) 编辑
摘要: .py: .sh: 阅读全文
posted @ 2019-01-21 14:08 lvmenghui001 阅读(3098) 评论(0) 推荐(0) 编辑
摘要: Go中channel可以是只读、只写、同时可读写的。 //定义只读的channel read_only := make (<-chan int) //定义只写的channel write_only := make (chan<- int) //可同时读写 read_write := make (ch 阅读全文
posted @ 2019-01-21 14:03 lvmenghui001 阅读(884) 评论(0) 推荐(0) 编辑
摘要: 下面的代码中,列出了Go官方包中常见的字符串函数。 阅读全文
posted @ 2019-01-21 13:56 lvmenghui001 阅读(229) 评论(0) 推荐(0) 编辑
摘要: status, msg = commands.getstatusoutput("ps -ef | grep start.sh | grep -Fv grep | awk '{print $10}'") 查找含有start.sh的进程,并过滤掉grep命令的行,然后输出第10列数据 status:执行 阅读全文
posted @ 2019-01-19 16:23 lvmenghui001 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 正文 nohup nohup 命令运行由 Command参数和任何相关的 Arg参数指定的命令,忽略所有挂断(SIGHUP)信号。在注销后使用 nohup 命令运行后台中的程序。要运行后台中的 nohup 命令,添加 & ( 表示“and”的符号)到命令的尾部。 nohup 是 no hang up 阅读全文
posted @ 2019-01-19 14:27 lvmenghui001 阅读(1508) 评论(0) 推荐(0) 编辑
摘要: 如果要查询整个内嵌文档,查询语句如下: 只针对内嵌文档的特定键值进行查询如下: 阅读全文
posted @ 2019-01-18 13:53 lvmenghui001 阅读(3075) 评论(0) 推荐(0) 编辑
摘要: def unicode_convert(input): if isinstance(input, dict): return {unicode_convert(key): unicode_convert(value) for key, value in input.iteritems()} elif isinstance(input, list): ... 阅读全文
posted @ 2019-01-18 13:43 lvmenghui001 阅读(1056) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 21 下一页