自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(11)
  • 收藏
  • 关注

转载 几个正则题目

1.匹配hi开头的单词,只需要匹配一次。s='hi ,his name is history!'2.匹配hi开头的单词,需要匹配二次。s='hi ,his name is history!'3.匹配hi开头的单词,需要返回全部匹配结果。s='hi ,his name is history!'4.匹配以ing或者noon为结尾的单词。s='good morning,good a...

2018-10-08 17:03:00 168

转载 工具类-FormatTime

.#coding:utf-8from datetime import datetimedef get_date_formatted_date(symblo): """ 获取指定格式 :param symblo: :return: """ data = ["%Y","%m","%d"] now = d...

2018-09-21 14:34:00 107

转载 操作excel

安装openpyxl库pip install openpyxl==2.4.5转载于:https://www.cnblogs.com/SneakingSled/p/9685563.html

2018-09-21 11:13:00 89

转载 windows-创建python虚拟环境

1.首先在D盘根目录安装Python3.6版本2.安装virtualenv库pip install virtualenv3.创建新环境virtualenv e:\auto_test4.进入e:\auto_test\Scriptactivate.bat5.结束deactivate.bat转载于:https://www...

2018-09-21 10:51:00 91

转载 selenium API(二)

1.单选框<form>  <input type="radio" name="sex" value="male">Male<br>  <input type="radio" name="sex" value="female">Female</form>element = driver.find_e...

2018-09-13 16:38:00 136

转载 selenium API(一)

1.访问,前进,后退,刷新,最大化#coding:utf-8from selenium import webdriverimport timedriver = webdriver.Chrome(executable_path="e:\driver\chromedriver")#访问driver.get("http://localhost:8088/demo/index.html"...

2018-09-13 14:19:00 65

转载 不同浏览器的访问

#encoding=utf-8from selenium import webdriverfrom threading import Threadimport timedef create_driver(browser): if browser == 'IE': driver = webdriver.Ie(executable_path="...

2018-09-13 14:08:00 96

转载 冒泡排序实现

public void bubbleSort(int arr[]) {for (int i = arr.length - 1; i > 0; i--) { for (int j = 0; j < i; j++) { if (arr[j] > arr[j + 1]) { ...

2018-09-12 17:44:00 66

转载 requests库的使用

1.requests库的安装pip install requests2.发送get/post请求#coding:utf-8import requestsr = requests.get('https://api.github.com/events')#响应状态码print(r) #<Response [200]>#响应内容...

2018-09-12 13:56:00 52

转载 Python对JSON数据的解析

1.python与json数据结构的对应情况2.dumps:卸载,将json对象卸载为str*sort_keys:排序*indent:格式化*ensure_ascii参数,想要输出中文时,要设置ensure_ascii=False*skipkeys参数,在encoding过程中,dict对象的key只可以是string对象,如果...

2018-09-11 17:23:00 258

转载 使用openpyxl对Excel进行操作

1.使用openpyxl库pip install openpyxl2.创建workbook对象,写入内容并存储#coding:utf-8from openpyxl import Workbookfrom datetime import datetime#创建wb对象wb = Workbook()#激活ws = wb.activews['...

2018-09-11 15:45:00 181

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除