2019年5月9日

摘要: public class CloseForm { [DllImport("user32", EntryPoint = "FindWindow")] private static extern IntPtr FindWindow(string lpClassName, string lpWindowN 阅读全文
posted @ 2019-05-09 10:14 花落花开一瞬间 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start(@"C:\WINDOWS\NOTEPAD.EXE"); } private void button2_Click(obj 阅读全文
posted @ 2019-05-09 10:08 花落花开一瞬间 阅读(795) 评论(0) 推荐(0) 编辑

2018年11月30日

摘要: 2.获取元素坐标 方法:location 解释:首先查找到你要获取元素的,然后调用location方法 实例: driver.find_element_by_xpath("//*[@id='tablechart']/tbody/tr[14]/td[9]").location 3.表单的提交 方法:s 阅读全文
posted @ 2018-11-30 15:05 花落花开一瞬间 阅读(239) 评论(0) 推荐(0) 编辑

2018年11月28日

摘要: 做小车L293D的使用是关键,自己对这板子也是一点也不了解,通过查资料和实际的摸索,算是终于完成了。把自己的经验分享一下,希望能有点帮助。首先这块板子是和其它扩展板一样,是整个插在Arduino主板上使用的<ignore_js_op> 主板上的引脚被它全部占住,但并不是都被其使用,具体请看带星号的扩 阅读全文
posted @ 2018-11-28 15:30 花落花开一瞬间 阅读(13849) 评论(2) 推荐(1) 编辑
摘要: 转自:http://www.cnblogs.com/BlueSkyyj/p/8615879.html 1、思路介绍 1.1、直接看代码,内有详细注释说明 1.2、代码介绍 如图,可以查看到登录前与登录后的cookie,将其拷贝出来,进行对比 如图,对比可以,登录后多余四个cookie 查看多余coo 阅读全文
posted @ 2018-11-28 14:56 花落花开一瞬间 阅读(247) 评论(0) 推荐(0) 编辑

2018年11月27日

摘要: 1. from urllib import parse,requesttextmod={'user':'admin','password':'admin'}textmod = parse.urlencode(textmod)print(textmod)#输出内容:user=admin&passwor 阅读全文
posted @ 2018-11-27 16:11 花落花开一瞬间 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/goldd/p/5457229.html 1、最简单 import urllib.requestresponse = urllib.request.urlopen('http://python.org/')html = response.read 阅读全文
posted @ 2018-11-27 16:01 花落花开一瞬间 阅读(343) 评论(0) 推荐(0) 编辑
摘要: python爬虫之xpath的基本使用 一、简介 XPath 是一门在 XML 文档中查找信息的语言。XPath 可用来在 XML 文档中对元素和属性进行遍历。XPath 是 W3C XSLT 标准的主要元素,并且 XQuery 和 XPointer 都构建于 XPath 表达之上。 参照 二、安装 阅读全文
posted @ 2018-11-27 15:02 花落花开一瞬间 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 转自 http://blog.chinaunix.net/uid-26000296-id-4394470.html 一、JSON简介 JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。易于人阅读和编写。同时也易于机器解析和生成。它基于JavaScript 阅读全文
posted @ 2018-11-27 11:12 花落花开一瞬间 阅读(284) 评论(0) 推荐(0) 编辑

2018年11月21日

摘要: 转自:https://www.cnblogs.com/liangxuehui/p/5797185.html 功能简介:利用利用selenium和Chrome浏览器,让其自动打开百度页面,并设置为每页显示50条,接着在百度的搜索框中输入selenium,进行查询。然后再打开的页面中选中“Seleniu 阅读全文
posted @ 2018-11-21 08:23 花落花开一瞬间 阅读(1651) 评论(0) 推荐(0) 编辑

导航