会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
DaiYanxi
博客园
首页
新随笔
联系
订阅
管理
2020年6月2日
linux对文件、用户、用户组操作命令集合
摘要: 参考:https://www.cnblogs.com/jackyyou/p/5498083.html groups 查看当前登录用户的组内成员,第一个用户组为当前用户的有效用户组(当前用户组)groups gliethttp 查看gliethttp用户所在的组,以及组内成员whoami 查看当前登录
阅读全文
posted @ 2020-06-02 16:46 DaiYanxi
阅读(137)
评论(0)
推荐(0)
2020年5月12日
测试报告生成插件
摘要: 1、allure+pytest 参考地址:https://juejin.im/post/5def3d64f265da33e67b3352 2、Pytest-Html 参考地址:https://mp.weixin.qq.com/s?__biz=MjM5ODY4ODIxOA==&mid=26532093
阅读全文
posted @ 2020-05-12 11:48 DaiYanxi
阅读(212)
评论(0)
推荐(0)
2020年5月7日
mysql连接查询并写到txt
摘要: 1 import pymysql 2 import time 3 4 def logger(msg): 5 print("[%s] %s" % (time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()), msg)) 6 7 host = 'xxxxx
阅读全文
posted @ 2020-05-07 15:11 DaiYanxi
阅读(209)
评论(0)
推荐(0)
2020年4月24日
时间戳和字符串之间的转化
摘要: 参考:https://www.liaoxuefeng.com/wiki/1016959663602400/1017648783851616 1 import datetime 2 def str_to_timestamp(t): 3 t_datetime = datetime.datetime.st
阅读全文
posted @ 2020-04-24 16:34 DaiYanxi
阅读(127)
评论(0)
推荐(0)
2020年4月22日
mongo管道聚合的应用
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2020-04-22 18:05 DaiYanxi
阅读(0)
评论(0)
推荐(0)
2020年4月21日
pytest使用感想
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2020-04-21 15:24 DaiYanxi
阅读(0)
评论(2)
推荐(0)
2020年4月18日
一次简单的爬虫
摘要: 目标网站: http://www.shicimingju.com/chaxun/zuozhe/9.html,爬取苏轼的所有诗词,并存入mongoDB,步骤如下:1、分析目标网站2、提取目标数据,可通过正则提取出诗词的标题和诗词内容3、将提取出的内容存到mongo以下为全部代码: 1 import r
阅读全文
posted @ 2020-04-18 15:04 DaiYanxi
阅读(91)
评论(1)
推荐(0)
公告