Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially adja ...
分类:
其他好文 时间:
2020-04-16 10:31:28
阅读次数:
82
一、selenium概念 用来完成浏览器自动化的相关操作 使用程序编写一系列的键盘、鼠标的相关操作(让浏览器来完成), 当我们执行代码时,就会触发一系列的事件 二、selenium在爬虫中的作用 可以获取动态加载的数据 三、selenium安装 pip install selenium 下载浏览器驱 ...
分类:
其他好文 时间:
2020-04-15 21:26:07
阅读次数:
72
一:解题思路 采用二分搜索的思想来做。 Time:O(log(n)),Space:O(1) 二:完整代码示例 (C++版和Java版) C++: class Solution { public: int findPeakElement(vector<int>& nums) { if (nums.si ...
分类:
编程语言 时间:
2020-04-15 21:14:01
阅读次数:
80
题目 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s ...
分类:
其他好文 时间:
2020-04-15 18:30:58
阅读次数:
59
30 # on RHEL pci.ids is locate on /usr/share/hwdata/pci.ids. 31 sudo find . -xdev \ 32 -path './sys/*' -prune -o \ 33 -path './tmp/*' -prune -o \ 34 - ...
分类:
其他好文 时间:
2020-04-15 18:15:18
阅读次数:
81
QXcbConnection: Could not connect to display localhost:17.0
rqt: cannot connect to X server localhost:.0
分类:
其他好文 时间:
2020-04-15 17:45:04
阅读次数:
68
You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1' ...
分类:
其他好文 时间:
2020-04-15 15:17:52
阅读次数:
68
一.下拉框 相信大家在手动测试web页面时,遇到过下拉框吧,那进行web自动化测试时,如何操作下拉框,且看下文 1.selenium中提供了方法,先导入Select方法 from selenium.webdriver.support.select import Select 2.实例化类 Selec ...
分类:
Web程序 时间:
2020-04-15 13:59:13
阅读次数:
122
关于在Flask中使用url_for,原本是一个很简单的事,就因为自己的无知,不熟悉,在上面浪费了超级多的时间,今天好不容易从google上找到了解决方法,在这给大家分享一下,不要在走弯路了!! 报错信息: werkzeug.routing.BuildError: Could not build u ...
分类:
Web程序 时间:
2020-04-15 13:44:52
阅读次数:
221
键盘操作需要使用send_keys()进行输入 driver.find_element_by_id(元素id).send_keys(输入的内容,Keys.ENTER)如下: send_keys(Keys.ENTER) Enter键 send_keys(Keys.CANCEL,'a') CANCEL+ ...
分类:
Web程序 时间:
2020-04-15 11:17:06
阅读次数:
96