03 2020 档案

摘要:txt文件 textFile=open(r'C:\Users\JChen46\Documents\info.txt') lines=textFile.readlines() textFile.close() for line in lines: username = line.split(',')[ 阅读全文

posted @ 2020-03-26 11:26 橙子j 阅读(6788) 评论(0) 推荐(1)

摘要:https://www.cnblogs.com/logon/p/3748020.html select * from table1 left join table2 on table1.id=table2.id 两个表dg1和dg2 外连接 left join,right join分别是left o 阅读全文

posted @ 2020-03-26 10:27 橙子j 阅读(248) 评论(0) 推荐(0)

摘要:get_cookies():获得所有cookie信息 get_cookie(name):返回字典key为name的cookie信息 add_cookie(cookie_dict):添加cookie,“cookie_dict”字典对象,含有key和value delete_cookie(name,op 阅读全文

posted @ 2020-03-25 09:36 橙子j 阅读(225) 评论(0) 推荐(0)

摘要:js="window.scrollTo(100,450)" driver.execute_script(js) from time import sleep from selenium import webdriver driver=webdriver.Chrome() driver.get("ht 阅读全文

posted @ 2020-03-24 17:36 橙子j 阅读(155) 评论(0) 推荐(0)

摘要:http Content-Type对照表 https://tool.oschina.net/commons/ Firefox下载设置如下: about:config可以查看下面设置的参数 from selenium import webdriver import os fp=webdriver.Fi 阅读全文

posted @ 2020-03-24 16:08 橙子j 阅读(716) 评论(0) 推荐(0)

摘要:os.system(r"C:\Users\JChen46\Desktop\testUpload.exe") 加个r就是告诉python不要转义 或者 os.system("C:\\Users\\JChen46\\Desktop\\testUpload.exe") 阅读全文

posted @ 2020-03-24 14:27 橙子j 阅读(2715) 评论(0) 推荐(0)

摘要:参考:https://www.cnblogs.com/yufeihlf/p/6179547.html 一、绝对路径 os.path.abspath(path):返回path的绝对路径 file_path='file:///'+os.path.abspath('upfile.html') driver 阅读全文

posted @ 2020-03-24 10:43 橙子j 阅读(144) 评论(0) 推荐(0)

摘要:#在设定时间(timeout)内,每隔poll_frequency,执行一次until里面的函数 WebDriverWait(driver,timeout=5,poll_frequency=0.5, ignored_exceptions=None).until()比如: ele=WebDriverW 阅读全文

posted @ 2020-03-20 17:38 橙子j 阅读(395) 评论(0) 推荐(0)

摘要:鼠标操作 from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains driver=webdriver.Chrome(r"C:\Users\JChen46\Downlo 阅读全文

posted @ 2020-03-20 10:10 橙子j 阅读(283) 评论(0) 推荐(0)

摘要:from selenium import webdriverdriver=webdriver.Chrome()driver.implicitly_wait(10) driver.get("http://baidu.com") driver.set_window_size(480,800) #设置窗口 阅读全文

posted @ 2020-03-19 13:46 橙子j 阅读(450) 评论(0) 推荐(0)

摘要:还是以百度为例: <body link="#0000cc" style=""> <script>...</script> <div id="wrapper" style="display: block;"> <script>...</script> <div id="head" class=""> 阅读全文

posted @ 2020-03-19 10:26 橙子j 阅读(225) 评论(0) 推荐(0)

摘要:以百度为例 html: <body link="#0000cc" style=""> <script>...</script> <div id="wrapper" style="display: block;"> <script>...</script> <div id="head" class=" 阅读全文

posted @ 2020-03-19 10:02 橙子j 阅读(298) 评论(0) 推荐(0)

摘要:运行 Shell 脚本有两种方法 1、作为可执行程序 将上面的代码保存为 test.sh,并 cd 到相应目录: chmod +x ./test.sh #使脚本具有执行权限 ./test.sh #执行脚本 前面可以加sh,即sh ./test.sh 2、作为解释器参数 这种运行方式是,直接运行解释器 阅读全文

posted @ 2020-03-18 15:22 橙子j 阅读(245) 评论(0) 推荐(0)

摘要:管道的使用 - | 管道是一种通信机制,通常用于进程间的通信(也可通过socket进行网络通信),它表现出来的形式将前面每一个进程的输出(stdout)直接作为下一个进程的输入(stdin) 管道命令使用|作为界定符号,管道命令与上面说的连续执行命令不一样。 管道命令仅能处理standard out 阅读全文

posted @ 2020-03-17 15:23 橙子j 阅读(277) 评论(0) 推荐(0)

摘要:配置名称,路径,系统 运行内存(RAM) 后面直接enter到选择硬盘内存 启动之前选择setting cpu选择几核 上传redhat(或者其他)的iso 网络设置成桥连接 启动start 阅读全文

posted @ 2020-03-13 17:28 橙子j 阅读(159) 评论(0) 推荐(0)

摘要:单行注释 # 这个是单行注释 多行注释 ''' 这个是多行 注释 ''' """ 这个也是多行 注释 """ 阅读全文

posted @ 2020-03-10 17:34 橙子j 阅读(162) 评论(0) 推荐(0)

摘要:https://blog.csdn.net/riemann_/article/details/90614414 https://blog.csdn.net/riemann_/article/details/94592135 依赖的jar包: commons-beanutils.jarcommons- 阅读全文

posted @ 2020-03-06 15:26 橙子j 阅读(393) 评论(0) 推荐(0)

摘要:https://blog.csdn.net/c_shell_python/article/details/79647627 阅读全文

posted @ 2020-03-05 10:10 橙子j 阅读(126) 评论(0) 推荐(0)

摘要:解决方案:https://blog.csdn.net/yyx3214/article/details/79552627 阅读全文

posted @ 2020-03-02 15:16 橙子j 阅读(196) 评论(0) 推荐(0)