python
热热的蚂蚁
这个作者很懒,什么都没留下…
展开
-
不通过yum安装pip
1、curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py2、python get-pip.py #注意这里要选择自己要用的python版本原创 2018-05-17 23:41:56 · 587 阅读 · 0 评论 -
urllib简单使用
codes: (use python2.7.5,centos7) 1 #!/usr/bin/python 2 import urllib 3 #the urllib just satisfy the URL,use urlencode function to query by GET,but urllib2 could be injected headers 4 request =...原创 2018-05-18 03:54:42 · 188 阅读 · 0 评论 -
xpath模糊定位contains的用法
starts-with 顾名思义,匹配一个属性开始位置的关键字contains 匹配一个属性值中包含的字符串text() 匹配的是显示文本信息,此处也可以用来做定位用eg//input[starts-with(@name,'name1')] 查找name属性中开始位置包含'name1'关键字的页面元素//input[contains(@name,'na')] ...转载 2018-09-11 10:18:50 · 6547 阅读 · 0 评论