摘要: #!/usr/bin/python #-*- coding:cp936 -*- from docx import Document from docx.enum.text import WD_PARAGRAPH_ALIGNMENT import re fl_name='/.docx' inpath 阅读全文
posted @ 2021-08-17 11:08 鱼長 阅读(289) 评论(0) 推荐(0) 编辑
摘要: import urllib3 import unittest import time import os import sys from request.test_2 import RunMethod from HTMLTestRunner import HTMLTestRunner class t 阅读全文
posted @ 2021-08-10 14:37 鱼長 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1.对方法进行封装 #1、封装get、post #!/usr/bin/env python3 # -*- coding: utf-8 -*- import json import requests class RunMethod: def post_main(self, url, data, hea 阅读全文
posted @ 2021-05-31 18:00 鱼長 阅读(199) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE dbo.OutputData @tablename sysname AS declare @column varchar(1000) declare @columndata varchar(1000) declare @sql varchar(4000) decla 阅读全文
posted @ 2020-04-16 18:02 鱼長 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1.安装Requests; pip install requests 2.在HTTP的请求中,最常使用的分别有GET,POST,通过request库也是可以实现,下面用post方法做接口测试 执行以下就会打印出接口返回结果 阅读全文
posted @ 2019-05-31 16:58 鱼長 阅读(308) 评论(0) 推荐(0) 编辑
摘要: HTTP响应消息(服务器返回给浏览器的):一个http响应代表服务器端向客户端回送的数据,它包括:一个状态行,若干个消息头,以及实体内容响应头(消息头)包含:Location:这个头配合302状态吗,用于告诉客户端找谁Server:服务器通过这个头,告诉浏览器服务器的类型Content-Encodi 阅读全文
posted @ 2019-05-15 14:44 鱼長 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 问题:往往不能打开浏览器,需要在python的根目录放一个geckodriver.exe文件 阅读全文
posted @ 2019-03-29 10:21 鱼長 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 背景:由于新应用要上线了,准生产UAT需要迁移到生产服务器。 原数据库架构为Solaris+oracle10g 新数据库架构为RHEL7+oracle12c 解决思路: 1、查询两台DB的字符编码: select userenv('language') from dual; 均为AMERICAN_A 阅读全文
posted @ 2018-07-27 18:08 鱼長 阅读(423) 评论(0) 推荐(0) 编辑
摘要: import hashlib def md5(arg): md5_pwd=hashlib.md5(bytes("meac",encoding="utf-8")) md5_pwd.update(bytes(arg,encoding="utf-8")) return md5_pwd.hexdigest()#返回加密的数据 def log(user,pew): tr... 阅读全文
posted @ 2017-07-26 11:49 鱼長 阅读(571) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 import re import urllib.request def getHtml(url): page = urllib.request.urlopen(url) html = page.read() html = html.decode('UTF-8') return html #Urllib 模块提供读取页面数据的接口 #u... 阅读全文
posted @ 2017-07-21 18:08 鱼長 阅读(248) 评论(1) 推荐(0) 编辑