Python
文章平均质量分 73
小强的奋斗人生
这个作者很懒,什么都没留下…
展开
-
Python使用pyinstaller打包正常程序后运行不正常'Could not find a suitable TLS CA certificate bundle, invalid path:.‘
最近学习python的tkinter模块,并用pyinstaller打包了一个图片压缩程序,源代码可以正常运行,但是打包成功运行后程序就无法执行,会报错"Could not find a suitable TLS CA certificate bundle":查了一下原因,因为压缩图片的库都要用到...原创 2020-05-11 10:59:54 · 1912 阅读 · 1 评论 -
python常用模块使用介绍
Python常用模块基础模块osos.chdir(path)os.chmod(path,mode)os.getcwd()os.listdir(path)os.makedirs(path[, mode])os.mkdir(path[, mode])os.open(file, flags[, mode])os.read(fd, n)os.remove(path)os.removedirs(path)o...原创 2020-07-06 09:11:38 · 276 阅读 · 0 评论 -
Python+selenium控制已打开浏览器
在使用selenium进行自动化测试中我们有时会遇到这样的情况:我们需要手动打开浏览器,进入到所需的页面,执行一些手动任务,如输入表单、输入验证码,登陆成功后,然后再开始运行自动化脚本。这种情况下如何使用selenium来接管先前已打开的浏览器呢?这里给出Google Chrome浏览器的解决方案。我们可以利用Chrome DevTools协议。它允许客户检查和调试Chrome浏览器。打...原创 2019-07-16 10:48:24 · 5407 阅读 · 8 评论