python +selenium上传文件 分为2部分 1、是input标签 driver.find_element_by_name("upload").send_keys('C:\\test.txt') 2、非input标签 https://blog.csdn.net/weixin_42024694 ...
分类:
编程语言 时间:
2020-01-11 21:58:45
阅读次数:
64
Find工具实战 Find工具实战,Find工具主要用于操作系统文件、目录的查找,其语法参数格式为: option常用参数详解如下: Find工具 name参数案例: Find工具 type参数案例: Find工具 size参数案例: Find工具 perm参数案例: Find工具 mtime参数案 ...
分类:
系统相关 时间:
2020-01-11 20:33:45
阅读次数:
96
话不多说,直接上干货!! 一、文件操作 ###查看文件命令 ls ls -a ll ###搜索文件 find / -name *.sh whereis###解压(tar)##解压tar包tar –xvf file.tar##解压tar.gztar -xzvf file.tar.gz##解压 tar. ...
分类:
系统相关 时间:
2020-01-11 20:00:08
阅读次数:
123
//新闻点赞public function praise(){ if (!is_login()) { $this->returnBack(2, '请先登录'); } $id = I('post.jour_id'); //新闻id $type = I('post.type'); //点赞状态 $art ...
分类:
其他好文 时间:
2020-01-11 15:01:49
阅读次数:
75
public function browse(){ $id = I('get.jour_id'); //新闻id $article = M('app_journalism')->where(['id'=>$id])->find(); if(!$article){ $this->success('未找 ...
分类:
其他好文 时间:
2020-01-11 14:53:23
阅读次数:
88
Linux显示开机logo的函数调用: 获取logo: 其中获取logo数据是在fb_find_logo中完成的: 以logo_linux_clut224为例,它是内核根据drivers/video/logo/logo_linux_clut224.ppm生成的(具体参考drivers/video/l ...
分类:
系统相关 时间:
2020-01-11 13:39:25
阅读次数:
193
谷歌无头浏览器 import time from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.support import expect ...
分类:
其他好文 时间:
2020-01-10 20:35:21
阅读次数:
75
等待机制 ? 因为你要查找的标签由于网速等原因迟迟没有加载出来,你就直接获取这个标签,很明显是报错,现有的简单粗暴的解决办法就是 ,睡几秒,也就是设置线程等待,等这个标签加载出来之后,再去使用。这么着虽然简单,但是相对死板,因为我们不知道这个标签什么时候加载出来,就大概写死睡个几秒,这可以,但如果这 ...
分类:
其他好文 时间:
2020-01-10 20:14:10
阅读次数:
103
什么时候需要调节Executor的堆外内存大小? 当出现一下异常时: shuffle file cannot find,executor lost、task lost,out of memory 出现这种问题的现象大致有这么两种情况: 上述情况下,就可以去考虑调节一下executor的堆外内存。也许 ...
分类:
其他好文 时间:
2020-01-10 12:34:38
阅读次数:
91
今天尝试在(qtcreator 4.7.0 + Qt 4.8.6)下编译,遇到找不到库文件问题,先开始想到的是环境配置问题 检查下来也没有线索, 又想是不是没有链接路径,参考网上,试了两个个命令 ld -lQtNetwork --verbose locate libQtNetwork ld -lQt ...
分类:
其他好文 时间:
2020-01-10 12:32:29
阅读次数:
176