上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 24 下一页
摘要: group by 后面不能接where聚合,但是可以接having cn>2这种聚合函数 阅读全文
posted @ 2019-09-24 10:01 yjy888 阅读(177) 评论(0) 推荐(0) 编辑
摘要: You put your template in the wrong place. From the Flask docs: Flask will look for templates in the templates folder. So if your application is a modu 阅读全文
posted @ 2019-09-19 11:51 yjy888 阅读(213) 评论(0) 推荐(0) 编辑
摘要: https://help.aliyun.com/document_detail/34994.html?spm=a2c4e.11153940.0.0.55953073yYjdBA SELECT * from ( select t.userid,t.totalamount, PERCENT_RANK() 阅读全文
posted @ 2019-09-12 15:40 yjy888 阅读(607) 评论(0) 推荐(0) 编辑
摘要: dt = datetime.datetime.now()hour = dt.hourmonth = dt.monthday = dt.day格式化时间 #!/usr/bin/python3 import time # 格式化成2016-03-20 11:45:39形式 print (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))... 阅读全文
posted @ 2019-09-11 11:42 yjy888 阅读(140) 评论(0) 推荐(0) 编辑
摘要: df1 = df[(df.tag!=39)&(df.company.str.contains('火锅',na=False))] na=False就是如果遇到空,就令其等于False 阅读全文
posted @ 2019-09-10 15:54 yjy888 阅读(1057) 评论(0) 推荐(0) 编辑
摘要: 其中如果setup为复合语句,则用 ; 隔开 import timeit t = timeit.Timer("r.get('123')","import redis;pool = redis.ConnectionPool(host='127.0.0.1', port=6379, decode_res 阅读全文
posted @ 2019-08-27 09:52 yjy888 阅读(218) 评论(0) 推荐(0) 编辑
摘要: sudo siege -c 3 -t 60s "127.0.0.1:5000/multi_dialogue?q=升级前的商品销售统计可以查得到吗&c=11112121&n=0&type=0" -c 为并发数 -t为时间 后面链接加引号 如果要post一个json,则应 sudo siege -c 2 阅读全文
posted @ 2019-08-07 11:02 yjy888 阅读(301) 评论(0) 推荐(0) 编辑
摘要: df = df.rename(columns={'product_name':'name','label':'tag'}) 阅读全文
posted @ 2019-07-31 15:14 yjy888 阅读(1962) 评论(0) 推荐(0) 编辑
摘要: 如 curl -i -k -X GET http://172.16.x.x:5000/config-manager/v2/script_freq?creater=anony&name=test&c_begin_t=2016-08-02 02:42:06如果直接发送,& 会被系统解析。空格也会被系统解 阅读全文
posted @ 2019-07-31 15:08 yjy888 阅读(8486) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 1、supervisor默认路径在\tmp下面,如果服务器重启之后,缓存可能被清除,需要更改路径 /tmp/supervisor.sock 改成 /var/run/supervisor.sock, /tmp/supervisord.log 改成 /var/log/supervisor. 阅读全文
posted @ 2019-07-30 10:25 yjy888 阅读(169) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 24 下一页