摘要: selenium 关闭浏览器,有两种方式 close quit 既然都是关闭浏览器,为什么要写两种方式? 区别 close: close只是关闭浏览器,但是不会退出 webdriver quit: quit 不仅可以关闭浏览器,还会退出 webdriver, 可以释放 与 driver server 阅读全文
posted @ 2020-05-26 16:15 十一的杂文录 阅读(924) 评论(0) 推荐(0) 编辑
摘要: import json # 将数据写入json文件 def json_write_file(): data={'name':'张三','age':12} with open('json.json','w') as f: f.write(json.dumps(data,indent=2, ensure 阅读全文
posted @ 2020-05-26 13:57 十一的杂文录 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 安装 pip install stylecloud 使用 from stylecloud import gen_stylecloud gen_stylecloud('zhangsan lisi wangwu zhangsan lisi zhaoliu') 结果 深入一点点 from styleclo 阅读全文
posted @ 2020-05-26 00:23 十一的杂文录 阅读(2054) 评论(0) 推荐(0) 编辑