上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 一、time的常用方法: import time,datetime# 时间有三种展现方式:时间戳,时间元组,格式化的时间print(time.time())#当前时间戳print(int(time.time()))print(time.strftime('%Y-%m-%d %H:%M:%S'))#格 阅读全文
posted @ 2020-11-05 09:19 忧伤恋上了快乐 阅读(238) 评论(0) 推荐(0) 编辑
摘要: =此页面列出了PyLint 1.1.0支持的所有消息,按消息文本排序。 还有一个按消息代码排序的所有代码列表。 E0001,F0001,W0511 (消息不同) E0103:循环中%r不正确 W1501:“ %s ”不是打开的有效模式。 E1101:%s %r没有%r成员 E1103:%s %r没有 阅读全文
posted @ 2020-09-21 14:03 忧伤恋上了快乐 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 通过修改 阅读全文
posted @ 2020-07-17 09:56 忧伤恋上了快乐 阅读(782) 评论(0) 推荐(0) 编辑
摘要: tomorrow是我最近在用的一个爬虫利器,该模块属于第三方的模块,使用起来非常的方便,只需要用其中的threads方法作为装饰器去修饰一个普通的函数,既可以达到并发的效果,本篇将用实例来展示tomorrow的强大之处。后面文章将对tomorrow的实现原理做进一步的分析。 1.安装第三方包 pip 阅读全文
posted @ 2020-07-10 15:23 忧伤恋上了快乐 阅读(557) 评论(0) 推荐(0) 编辑
摘要: Excel是数据分析中最常用的工具,本篇文章通过python与excel的功能对比介绍如何使用python通过函数式编程完成excel中的数据处理及分析工作。在Python中pandas库用于数据处理 ,我们从1787页的pandas官网文档中总结出最常用的36个函数,通过这些函数介绍如何通过pyt 阅读全文
posted @ 2019-03-01 10:52 忧伤恋上了快乐 阅读(9596) 评论(0) 推荐(0) 编辑
摘要: 1.定位:A.利用 Android UIAutomator定位:例: driver.find_element_by_android_uiautomator('new UiSelector().description("Animation")') B.利用Accessibility ID定位例:dri 阅读全文
posted @ 2018-07-28 12:10 忧伤恋上了快乐 阅读(623) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8from appium import webdriverimport timefrom selenium.webdriver.common.keys import Keysdesired_caps = {'platformName': 'Android', 'device 阅读全文
posted @ 2018-07-28 10:25 忧伤恋上了快乐 阅读(193) 评论(0) 推荐(0) 编辑
摘要: slemium webdriver 支持多种情况模拟用户操作浏览器。如:IE,chrome,Firefox等。同时,selenium还有一种HtmlUnit Driver驱动能够在不启动浏览器的情况下运行相关测试用例。 利用HtmlUnit Driver方式运行测试用例大大减少了等待浏览器展现的时间 阅读全文
posted @ 2018-05-29 10:04 忧伤恋上了快乐 阅读(3073) 评论(0) 推荐(0) 编辑
摘要: 1. 强制等待 第一种也是最简单粗暴的一种办法就是强制等待sleep(xx),强制让闪电侠等xx时间,不管凹凸曼能不能跟上速度,还是已经提前到了,都必须等xx时间。 看代码: ? 1 2 3 4 5 6 7 8 9 10 11 # -*- coding: utf-8 -*- from seleniu 阅读全文
posted @ 2018-05-24 14:08 忧伤恋上了快乐 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 使用WebDriver在Chrome浏览器上进行测试时,需要从http://chromedriver.storage.googleapis.com/index.html网址中下载与本机chrome浏览器对应的驱动程序,驱动程序名为chromedriver; chromedriver的版本需要和本机的 阅读全文
posted @ 2018-05-23 14:55 忧伤恋上了快乐 阅读(1537) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页