摘要: 参考:https://www.cnblogs.com/jackyyou/p/5498083.html groups 查看当前登录用户的组内成员,第一个用户组为当前用户的有效用户组(当前用户组)groups gliethttp 查看gliethttp用户所在的组,以及组内成员whoami 查看当前登录 阅读全文
posted @ 2020-06-02 16:46 DaiYanxi 阅读(137) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)
摘要: 参考: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)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-04-22 18:05 DaiYanxi 阅读(0) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-04-21 15:24 DaiYanxi 阅读(0) 评论(2) 推荐(0)
摘要: 目标网站: 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)