这个类代表HTML页面元素 id_ #当前元素的ID tag_name #获取元素标签名的属性 text #获取该元素的文本。 click() #单击(点击)元素 submit() #提交表单 clear() #清除一个文本输入元素的文本 get_attribute(name) #获得属性值 s_s ...
分类:
Web程序 时间:
2019-04-06 12:38:44
阅读次数:
165
项目使用ajax post后根据返回的success,需要打开一个新页面,使用window.open发现谷歌浏览器直接被拦截。 后来了解发现该操作并不是用户主动触发的,所以它认为这是不安全的就拦截了,即使 ajax 回调函数中模拟执行 click 或者 submit 等用户行为(trigger('c ...
题目描述 The branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the interest of number theoreti ...
分类:
其他好文 时间:
2019-04-04 13:04:33
阅读次数:
136
HTML页面的基本结构 html标签 页面的设置和文件的导入(页面标题) 要显示在页面上的标签 标签 h1 h6:一到六级标题 hr:分割线 br:换行 p:段落 em:斜体 strong:加粗 a 超链接 href 加链接 target="_blank"新开页面打开前面链接 img 图片 div ...
分类:
Web程序 时间:
2019-04-02 19:46:40
阅读次数:
171
线程池: 概念:线程池,其实就是一个容纳多个线程的容器,其中的线程可以反复使用,省去了频繁创建线程对象的操作,无需反复创建线程而消耗过多资源。 Executors:线程池创建工厂类 ExecutorService:线程池类 ExecutorService er=Executors.newFixedT ...
分类:
编程语言 时间:
2019-03-31 19:28:40
阅读次数:
154
一.Client模式 提交命令: ./spark-submit --master yarn --class org.apache.examples.SparkPi ../lib/spark-examples-1.6.0-hadoop2.7.3.jar 1000 ./spark-submit --ma ...
分类:
其他好文 时间:
2019-03-31 18:09:12
阅读次数:
169
html 四、表单标签 form标签: input系列:内敛标签 1、明文: 姓名:<input type="text" name="user" placeholder="请输入用户名" id="user"> 2、密文: 密码:<input type="password" name="pwd"> 3 ...
分类:
Web程序 时间:
2019-03-28 00:25:28
阅读次数:
203
阿里巴巴供应商爬虫 起因 学了爬虫入门之后,打算找一个有难度的网站来实践,一开始打算找淘宝或者天猫(业界老大)来实践,但后续发现网上已经有很多这方面的项目,于是瞄上了阿里的国际网站阿里巴巴。开始一切顺利,没发现什么难度,后面发现供应商的联系方式需要登录,于是以其为目标开始写爬虫。 网站结构 1.阿里 ...
分类:
编程语言 时间:
2019-03-27 12:32:32
阅读次数:
300
CSI3131Assignment 2 Winter 2019Semaphores/inter-thread synchronizationYou must submit your assignment on-line with Virtual Campus. This isthe only met ...
Django-用户认证组件 auth模块 django.contrib.auth中提供了许多方法,这里主要介绍其中的三个: 1.1 、authenticate()提供了用户认证,即验证用户名以及密码是否正确,一般需要username password两个关键字参数 如果认证信息有效,会返回一个 Us ...
分类:
其他好文 时间:
2019-03-23 22:52:50
阅读次数:
288