![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
hello陌生人
这个作者很懒,什么都没留下…
展开
-
Python+selenium(1)
这里我使用chrome浏览器和pycharm,需下载对应浏览器版本chromedriver.exe配合使用(复制到python安装目录下即可)。其他环境默认已搭建哈 1. 首先肯定先打开浏览器。 from selenium import webdriver driver = webdriver.Chrome() #初始化driver对象 2. 再打开网页 url = "https://www.baidu.com" driver.maximize_window() #最大化窗口 dri原创 2021-06-05 10:45:12 · 50 阅读 · 0 评论 -
set、multiset、unordered_set
**std::set:**元素不重复,默认有 从小到大的排序(底层红黑树) **std::multiset:**存储的元素可重复,默认有从小到大的排序(底层红黑树) **std::unordered_set:**容器内的元素无序排列,基于值进行获取单个元素速度非常快(哈希表) 若想读写效率是最高的,并不需要对数据进行排序,而且还不要让数据重复,使用unordered_set 例题:https://leetcode-cn.com/problems/intersection-of-two-arrays/ 给定两原创 2020-11-02 12:46:44 · 166 阅读 · 0 评论 -
Keep,Note.1
1、获取环境变量: char* getenv(const char* name) 成功就返回环境变量的值,失败返回NULL (include <stdlib.h>) include <stdio.h> #include <stdlib.h> int main() { printf("homepath is [%s]\n",geienv("home")); return 0; } 2、进程 创建一个新的进程 pid_t fork(void); 返回值:失败原创 2020-10-28 23:21:24 · 105 阅读 · 0 评论