摘要: a = browser.find_elements_by_xpath("//div[@class='xx']") a.click() 报错提示: Other element would receive the click 改为如下即可: browser.execute_script("argumen 阅读全文
posted @ 2020-10-14 10:29 Virya 阅读(3813) 评论(0) 推荐(0) 编辑
摘要: Mac 自带了 VNC 客户端,只是路径有点深,其路径为 /System/Library/CoreServices/Applications/Screen Sharing.app 使用 spotlight(聚焦搜索) 或 alfred 的搜索 Screen Sharing 即可。 参考: https 阅读全文
posted @ 2020-10-10 17:10 Virya 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 安装CentOS 8桌面版 系统镜像名 CentOS-8.2.2004-x86_64-dvd1.iso 若无GUI,需安装 sudo dnf groupinstall "Server with GUI" 安装vnc-server sudo dnf install tigervnc-server -y 阅读全文
posted @ 2020-10-10 15:40 Virya 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 数组for循环输出,带索引: for index, item in enumerate(name_list): print(index) print(item) 字符串查找子字符串: beg, end 起始结束位置可选 "34123456".index("34") # 0 "34123456".ri 阅读全文
posted @ 2020-10-08 17:05 Virya 阅读(210) 评论(0) 推荐(0) 编辑
摘要: PyCharm升级后,python从3.7升级到3.8。由于使用虚拟环境变量venv,升级到3.8后报错了,找不到import的包。 此时,删除venv/lib/python3.7整个目录。再运行python3 -m ensurepip 之后就可以安装依赖了。如pip3 install reques 阅读全文
posted @ 2020-09-29 10:13 Virya 阅读(11527) 评论(0) 推荐(0) 编辑
摘要: 参考: vuex官方文档 https://vuex.vuejs.org/zh/ Vuex快速使用 https://mp.weixin.qq.com/s/OnVcgBQlSLHiR12WXN5nbQ 模块化用到的 require.context https://juejin.im/post/68449 阅读全文
posted @ 2020-09-29 10:11 Virya 阅读(2042) 评论(1) 推荐(0) 编辑