会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yjy888
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
24
下一页
2019年9月24日
sql having 关键词
摘要: group by 后面不能接where聚合,但是可以接having cn>2这种聚合函数
阅读全文
posted @ 2019-09-24 10:01 yjy888
阅读(209)
评论(0)
推荐(0)
2019年9月19日
flask 查找目录,
摘要: 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
阅读(218)
评论(0)
推荐(0)
2019年9月12日
maxcompute使用窗口函数,对于某个字段进行排名
摘要: 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
阅读(648)
评论(0)
推荐(0)
2019年9月11日
python 获取时间
摘要: 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
阅读(146)
评论(0)
推荐(0)
2019年9月10日
str.contains 如果遇到空值
摘要: df1 = df[(df.tag!=39)&(df.company.str.contains('火锅',na=False))] na=False就是如果遇到空,就令其等于False
阅读全文
posted @ 2019-09-10 15:54 yjy888
阅读(1124)
评论(0)
推荐(0)
2019年8月27日
使用timeit进行性能测试
摘要: 其中如果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
阅读(224)
评论(0)
推荐(0)
2019年8月7日
使用siege进行压力测试
摘要: 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
阅读(308)
评论(0)
推荐(0)
2019年7月31日
pandas 列名重命名
摘要: df = df.rename(columns={'product_name':'name','label':'tag'})
阅读全文
posted @ 2019-07-31 15:14 yjy888
阅读(1988)
评论(0)
推荐(0)
curl 空格和转义符
摘要: 如 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
阅读(8741)
评论(0)
推荐(0)
2019年7月30日
supervisor
摘要: 恢复内容开始 1、supervisor默认路径在\tmp下面,如果服务器重启之后,缓存可能被清除,需要更改路径 /tmp/supervisor.sock 改成 /var/run/supervisor.sock, /tmp/supervisord.log 改成 /var/log/supervisor.
阅读全文
posted @ 2019-07-30 10:25 yjy888
阅读(182)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
24
下一页
公告