前言 之前的系列博客,陆续学习整理了自动化测试环境的搭建、IE和Chrome浏览器驱动的配置、selenium-webdriver模块封装的元素定位以及控制浏览器、处理警示框、鼠标键盘等方法的使用,这些内容还需要后续多加练习掌握,以达到灵活运用的程度。but,这仅仅只是开始,说明咱们能够使用sele ...
分类:
编程语言 时间:
2019-03-05 15:20:39
阅读次数:
349
官方文档地址 https://docs.microsoft.com/zh-cn/aspnet/?view=aspnetcore-2.2#pivot=core EF Core 使用 1. 创建数据库上下文和数据实体 从Sql Server 数据库读取连接和实体,打开Nuget 包管理控制台,输入 成功 ...
分类:
其他好文 时间:
2019-03-01 17:08:24
阅读次数:
1308
常用模块一 collections模块 时间模块 random模块 os模块 sys模块 序列化模块 re模块 常用模块二 hashlib模块 configparse模块 logging模块 collections模块 在内置数据类型(dict、list、set、tuple)的基础上,collect ...
分类:
其他好文 时间:
2019-03-01 15:51:09
阅读次数:
182
[oracle@ctp ~]$ expdp -help Export: Release 11.2.0.3.0 - Production on Thu Feb 28 13:52:15 2019 Copyright (c) 1982, 2011, Oracle and/or its affiliates ...
分类:
数据库 时间:
2019-02-28 15:16:44
阅读次数:
181
java:提示Could not initialize class sun.awt.X11GraphicsEnvironment 问题: 启动tomcat提示 Could not initialize class sun.awt.X11GraphicsEnvironment 问题。 解决方案: 方案 ...
分类:
编程语言 时间:
2019-02-27 11:50:00
阅读次数:
151
主要用于生产者,消费者模型消费者消费速度大于生产者生产速度例子classDispatcher:def__init__(self):self.data=Noneself.event=threading.Event()defproduce(self,total):for_inrange(total):data=random.randint(0,100)logging.info(data)self.da
分类:
其他好文 时间:
2019-02-26 21:05:45
阅读次数:
176
模块:一个py文件成为一个模块 好处:大大提高了可维护性 分为三种: Python标准库模块 第三方模块 应用程序自定义模块 import: 执行了对应文件 引入变量名 解释器目录下调用 方式: 模块最后的调试代码前加上 if __name__=='__main__': XXXXX 内置模块: os ...
分类:
其他好文 时间:
2019-02-25 23:31:06
阅读次数:
494
threading.Timer实现延迟执行的实例代码importtimeimportthreadingimportloggingFORMAT="%(asctime)s%(threadName)s%(thread)d%(message)s"logging.basicConfig(format=FORMAT,level=logging.INFO)defworker():logging.info(‘in
分类:
其他好文 时间:
2019-02-25 11:55:54
阅读次数:
161
1 import re 2 from pymysql import connect 3 import urllib.parse 4 import logging 5 6 7 URL_FUNC_DICT = dict() 8 9 def open_mysql(): 10 # 创建connect连接 1... ...
分类:
其他好文 时间:
2019-02-24 20:14:39
阅读次数:
173
一、日志记录的格式与调用方法 1.配置日志打印格式: 2.调用方式: logging.debug('debug message') #打印debug信息 logging.info('info message') #打印info信息 logging.warning('warning message') ...
分类:
其他好文 时间:
2019-02-24 18:58:05
阅读次数:
148