上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: from retrying import retry def is_request_exception(e): return issubclass(type(e),RequestException) @retry(retry_on_exception=is_request_exception,wra 阅读全文
posted @ 2020-05-26 15:14 凯帅 阅读(230) 评论(0) 推荐(0) 编辑
摘要: function myrefresh() { window.location.reload(); } setTimeout('myrefresh()', 1000); //指定1秒刷新一次 </script> 阅读全文
posted @ 2020-05-25 21:47 凯帅 阅读(431) 评论(0) 推荐(0) 编辑
摘要: import requests from urllib.parse import urlencode from openpyxl import Workbook requests = requests.session() login_url = "https://passport.simuwang. 阅读全文
posted @ 2020-05-13 15:42 凯帅 阅读(707) 评论(0) 推荐(0) 编辑
摘要: 1.导出数据 mysqldump -u root -p123456 tiantian > C:\Users\ASUS\Desktop\shangduogou.sql :然后输入密码 mysqldump -u dbuser -p dbname > dbname.sql 2.操作数据库 import p 阅读全文
posted @ 2020-05-08 22:21 凯帅 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 1.读excel import xlrd # 打开excel data = xlrd.open_workbook("Gitee.xlsx") table = data.sheet_by_name("程序开发") # # 选择的表单页 # print(table.nrows) # 多少行 # prin 阅读全文
posted @ 2020-05-01 19:49 凯帅 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 1.指定开头,指定结尾 str1 = "background-image: url(https://image2.pearvideo.com/cont/20200428/cont-1671582-12370181.png);" # \b开头字符.*?结尾字符\b res = re.search(r" 阅读全文
posted @ 2020-04-28 18:45 凯帅 阅读(787) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriver from selenium.webdriver.chrome.options import Options # => 引入Chrome的配置 import time # 配置 ch_options = Options() ch_optio 阅读全文
posted @ 2020-04-25 16:07 凯帅 阅读(5181) 评论(0) 推荐(0) 编辑
摘要: 首先selenium 很人性化的给提供了一个Select的模块,供处理下来菜单,首先我们需要导入Select,通过from selenium.webdriver.support.select import Select来导入。 Select中提供几个用于定位的option的方法,下面看一下具体的方法 阅读全文
posted @ 2020-04-23 17:35 凯帅 阅读(874) 评论(0) 推荐(0) 编辑
摘要: 一、JDK的安装1.双击jdk安装文件 。 2.直接点击“下一步” 。 3.点击“更改”,更改安装路径,可自定义安装路径(可将安装路径复制下来,在环境配置中需要安装路径),更改后点击确定。 4.等待安装完成,安装完成后直接点击关闭即完成安装。 二、环境的配置1.在控制面板->系统中,点击高级设置 2 阅读全文
posted @ 2020-04-11 16:17 凯帅 阅读(4135) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 ''' selenium ''' from selenium import webdriver as wd import time bc=wd.Chrome(executable_path='f:\\chromedriver') #bc=wd.Ie(executable_ 阅读全文
posted @ 2020-04-08 19:50 凯帅 阅读(1246) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页