随笔分类 -  python

1 2 下一页

自动化测试CSS元素定位
摘要:1.1 CSS定位 1.1.1 绝对路径定位 目标 查找第一个文本为“猜猜看”的a标签 实现 CSS表达式 html>body>div>a[.=”猜猜看”] python表达式 driver.find_element_by_css_selector(‘html>body>div>a[.=”猜猜看”] 阅读全文

posted @ 2022-11-03 10:23 sunny_2016 阅读(187) 评论(0) 推荐(0) 编辑

python代码实现自动化测试中字符串自动生成
摘要:import datetimeimport randomimport stringt1 = datetime.datetime.today()t1 = t1.strftime("%Y%m%d%H%M%S")print(t1)print("大小写字母:" + string.ascii_letters) 阅读全文

posted @ 2021-11-13 22:43 sunny_2016 阅读(133) 评论(0) 推荐(0) 编辑

正则表达式读取文件中的邮箱和固话
摘要:<div class="foot-box"> <p class="map-content-line-footer"></p> <div class="contact-mail"> <div class="mail-box"> <div class="mail-title"> 合作联系 </div> 阅读全文

posted @ 2020-10-28 20:23 sunny_2016 阅读(141) 评论(0) 推荐(0) 编辑

python核心编程思想2
该文被密码保护。

posted @ 2020-05-27 08:01 sunny_2016 阅读(1) 评论(0) 推荐(0) 编辑

关键字驱动
该文被密码保护。

posted @ 2020-05-24 21:18 sunny_2016 阅读(1) 评论(0) 推荐(0) 编辑

光荣之路python编程基础
该文被密码保护。

posted @ 2020-05-24 21:11 sunny_2016 阅读(0) 评论(0) 推荐(0) 编辑

多线程并发编程
该文被密码保护。

posted @ 2020-05-24 21:07 sunny_2016 阅读(1) 评论(0) 推荐(0) 编辑

正则表达式实例:利用正则取${abc_cded}
该文被密码保护。

posted @ 2020-05-21 07:36 sunny_2016 阅读(0) 评论(0) 推荐(0) 编辑

python 2.7 操作mysql数据库 实例
摘要:create table msg(id int primary key auto_increment,title varchar(20),name varchar(60),content varchar(1000))charset utf8; insert into msg (title,name, 阅读全文

posted @ 2018-01-22 13:45 sunny_2016 阅读(247) 评论(0) 推荐(0) 编辑

python中的装饰器
摘要:#coding=utf-8"""def funA(arg): print 'A' a = arg() @funA def funB(): print 'B'"""'''python类里会出现这三个单词,self和cls都可以用别的单词代替,类的方法有三种, 一是通过def定义的 普通的一般的,需要至 阅读全文

posted @ 2017-12-16 12:56 sunny_2016 阅读(107) 评论(0) 推荐(0) 编辑

利用正则得到页面邮箱
摘要:#coding=utf-8#python2.7实现 from selenium import webdriver import re dr = webdriver.Chrome() dr.maximize_window() dr.implicitly_wait(6) dr.get("http://h 阅读全文

posted @ 2017-11-29 13:10 sunny_2016 阅读(139) 评论(0) 推荐(0) 编辑

python中判断两个对象是否相等
摘要:#coding=utf-8#比较两个对象是否相等#python 2中使用cmp(),==,is#is 主要是判断 2 个变量是否引用的是同一个对象,如果是的话,则返回 true,否则返回 false。#== 用来判断两个对象的值是否相等(跟 Java 不同,Java 中 == 用来判断是否是同一个对 阅读全文

posted @ 2017-11-03 13:35 sunny_2016 阅读(16800) 评论(0) 推荐(0) 编辑

pip安装指定版本的程序的命令
摘要:pip安装指定版本的程序的命令 pip install -i https://pypi.douban.com/simple/ django==1.10.3 或者 pip install django==1.10.3 或者 pip3 install django==1.10.3 或者 python3 阅读全文

posted @ 2017-09-27 11:06 sunny_2016 阅读(676) 评论(0) 推荐(0) 编辑

webpy安装
摘要:C:\Users\ceshi>python -m pip install web.pyCollecting web.py Downloading web.py-0.38.tar.gz (91kB) 100% 92kB 61kB/sInstalling collected packages: web. 阅读全文

posted @ 2017-09-20 13:03 sunny_2016 阅读(153) 评论(0) 推荐(0) 编辑

python处理JSON 序列化与反序列化
摘要:#序列化 >>> import json>>> d={"key":"value"}>>> d{'key': 'value'}>>> json.dumps(d)'{"key": "value"}' #反序列化>>> j=json.dumps(d)>>> j'{"key": "value"}'>>& 阅读全文

posted @ 2017-08-29 09:02 sunny_2016 阅读(101) 评论(0) 推荐(0) 编辑

appium常用api
摘要:http://www.cnblogs.com/yoyoketang/p/6189441.html 阅读全文

posted @ 2017-08-01 13:08 sunny_2016 阅读(110) 评论(0) 推荐(0) 编辑

python字典中显示中文
摘要:#coding=utf-8import jsondict={'title':"这是中文"}print json.dumps(dict,ensure_ascii=False,encoding="utf-8") books=[ {'name':u'C#从入门到精通','price':23.7,'stor 阅读全文

posted @ 2017-07-14 13:05 sunny_2016 阅读(436) 评论(0) 推荐(0) 编辑

flask学习
摘要:http://flask.pocoo.org/ http://requests-docs-cn.readthedocs.io/zh_CN/latest/ http://dormousehole.readthedocs.io/en/latest/ 阅读全文

posted @ 2017-06-26 12:52 sunny_2016 阅读(100) 评论(0) 推荐(0) 编辑

1 2 下一页

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示