<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[henye007的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/henye007</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; henye007]]></copyright><item><title><![CDATA[asyncio.sleep]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/126824776</link><guid>https://blog.youkuaiyun.com/henye007/article/details/126824776</guid><author>henye007</author><pubDate>Mon, 12 Sep 2022 23:31:50 +0800</pubDate><description><![CDATA[asyncio]]></description><category></category></item><item><title><![CDATA[python与golang 的 gzip 压缩]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/126312963</link><guid>https://blog.youkuaiyun.com/henye007/article/details/126312963</guid><author>henye007</author><pubDate>Fri, 12 Aug 2022 23:24:58 +0800</pubDate><description><![CDATA[golang与python 的 gzip.compress]]></description><category></category></item><item><title><![CDATA[‘gbk‘ codec can‘t encode character ‘\xa0‘ in position 75877: illegal multibyte s]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/114374522</link><guid>https://blog.youkuaiyun.com/henye007/article/details/114374522</guid><author>henye007</author><pubDate>Thu, 04 Mar 2021 18:04:33 +0800</pubDate><description><![CDATA[在使用 execjs执行js文件时，或者爬虫解析时， 遇到这个问题
\xa0 是不间断空白符 &nbsp;
我们通常所用的空格是 \x20 ，是在标准ASCII可见字符 0x20~0x7e 范围内。
而 \xa0 属于 latin1 （ISO/IEC_8859-1）中的扩展字符集字符，代表空白符nbsp(non-breaking space)。
latin1 字符集向下兼容 ASCII （ 0x20~0x7e ）。通常我们见到的字符多数是 latin1 的，比如在 MySQL 数据库中。
解决方法：
wit]]></description><category></category></item><item><title><![CDATA[python-三种数据库封装的工具]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/108395306</link><guid>https://blog.youkuaiyun.com/henye007/article/details/108395306</guid><author>henye007</author><pubDate>Thu, 03 Sep 2020 23:28:05 +0800</pubDate><description><![CDATA[python-数据库封装工具
对常用的数据库的封装，数据的结果，异常采用类变量的方式。对 sqlserver, mysql，oracle三种数据库的封装。
配置
我这边是将数据库的连接信息存在了oracle数据库，其他数据源需要去数据库中去读取。
代码
# -*- coding: utf-8 -*-
# auth:lwh
import os
import sys
from re import split as str_split
from DBUtils.PooledDB import PooledDB
i]]></description><category></category></item><item><title><![CDATA[python 正则批量替换]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/108352320</link><guid>https://blog.youkuaiyun.com/henye007/article/details/108352320</guid><author>henye007</author><pubDate>Tue, 01 Sep 2020 22:40:23 +0800</pubDate><description><![CDATA[python 正则批量替换
使用dataX从上游不同的数据源抽数时，存在reader对querysql转换的问题，在writer中又需要去掉这个类型转换，只保留字段信息，我这边的话使用的是正则的替换。
import re

# 对sql中的case when 语句只需要字段名即可，这里需要做一个替换

sql = """
    SELECT ID, BONDISSUEID, BCODE, BISSUE_BDC1, BISSUE_BDC2
	, BISSUE_BDC3, BISSUE_BDC4, BISSU]]></description><category></category></item><item><title><![CDATA[用Python获取文件的后几行]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/108351893</link><guid>https://blog.youkuaiyun.com/henye007/article/details/108351893</guid><author>henye007</author><pubDate>Tue, 01 Sep 2020 22:14:38 +0800</pubDate><description><![CDATA[用Python获取文件的后几行
程序的跑批日志有时候累加的多了会特别的大，如果我们只需要获取文件的后几行的话，就不需要依次遍历。
读取文件获取最后几行
with open(r'文件路径', 'r' ) as f:
    txt = f.readlines()
    keys = [k for k in range(0, len(txt))]
    result = {k: v for k, v in zip(keys, txt[::-1])}
    for i in range(7):
      ]]></description><category></category></item><item><title><![CDATA[unknown command Cannot call non W3C standard command while in W3C mode]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/100552892</link><guid>https://blog.youkuaiyun.com/henye007/article/details/100552892</guid><author>henye007</author><pubDate>Thu, 05 Sep 2019 10:30:57 +0800</pubDate><description><![CDATA[selenium.common.exceptions.WebDriverException  Message :unknown command Cannot call non W3C standard command while in W3C mode
解决方法
Python
from selenium import webdriver
opt = webdriver.ChromeOptions(...]]></description><category></category></item><item><title><![CDATA[numpy学习小结]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/93885919</link><guid>https://blog.youkuaiyun.com/henye007/article/details/93885919</guid><author>henye007</author><pubDate>Thu, 27 Jun 2019 16:12:32 +0800</pubDate><description><![CDATA[NumPy（Numerical Python）是Python语言的一个扩充程序库。支持高级大量的维度数组与矩阵运算，此外也针对数组运算提供大量的数学函数库。
nan不能修改为0，一般改为平均数。
import numpy as np
# t1 = np.loadtxt('1.csv', delimiter=',', dtype=int)
# print(t1.shape)
# print(t1)
...]]></description><category></category></item><item><title><![CDATA[study-log]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/90521057</link><guid>https://blog.youkuaiyun.com/henye007/article/details/90521057</guid><author>henye007</author><pubDate>Fri, 24 May 2019 18:08:53 +0800</pubDate><description><![CDATA[近期学习方向
python 线程池  进程池  与  celery 之间的区别   携程  异步
django flask  数据可视化    部署

]]></description><category></category></item><item><title><![CDATA[Java 数组排序 (持续更新)]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/90241644</link><guid>https://blog.youkuaiyun.com/henye007/article/details/90241644</guid><author>henye007</author><pubDate>Wed, 15 May 2019 17:50:25 +0800</pubDate><description><![CDATA[插入排序：
public class InsertSort {
    public static void main(String[] args){
        int[] array = new int[]{20,40,90,30,80,70,50};
        System.out.println("排序前");
        for (int i=0; i&lt;array.l...]]></description><category></category></item><item><title><![CDATA[PyQt5快速开发与实战pdf]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/89442752</link><guid>https://blog.youkuaiyun.com/henye007/article/details/89442752</guid><author>henye007</author><pubDate>Mon, 22 Apr 2019 00:24:50 +0800</pubDate><description><![CDATA[下载
第1章 认识PyQt 5 1
1.1 PyQt框架简介 1
1.1.1 PyQt 5的特点 3
1.1.2 Qt与PyQt的关系 4
1.1.3 其他图形界面开发库介绍 4
1.1.4 PyQt 4／PyQt 5 6
1.1.5 Python 2／Python 3 6
1.2 PyQt 5环境搭建 7
1.2.1 在Windows下搭建PyQt 5环境 7
1.2.2 在Mac OS下搭建P...]]></description><category></category></item><item><title><![CDATA[pycharm 配置云镜像]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/89374290</link><guid>https://blog.youkuaiyun.com/henye007/article/details/89374290</guid><author>henye007</author><pubDate>Thu, 18 Apr 2019 11:03:37 +0800</pubDate><description><![CDATA[阿里云镜像
http://mirrors.aliyun.com/pypi/simple/[阿里云镜像
]

]]></description><category></category></item><item><title><![CDATA[极验点字验证码登陆]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/88977839</link><guid>https://blog.youkuaiyun.com/henye007/article/details/88977839</guid><author>henye007</author><pubDate>Tue, 02 Apr 2019 18:09:36 +0800</pubDate><description><![CDATA[雪球网
from selenium import webdriver
from selenium.webdriver import ActionChains
from io import BytesIO
import json
import os
import time
from selenium.webdriver.common.by import By
from selenium.webdri...]]></description><category></category></item><item><title><![CDATA[py验证码-联众验证码接入]]></title><link>https://blog.youkuaiyun.com/henye007/article/details/88954149</link><guid>https://blog.youkuaiyun.com/henye007/article/details/88954149</guid><author>henye007</author><pubDate>Mon, 01 Apr 2019 18:25:01 +0800</pubDate><description><![CDATA[联众验证码 - python3接入
在处理字体点击的验证码时，采用联众的打码平台，用Py3的接入
import requests
from base64 import b64encode
import os


class CaptchaApi:

    def __init__(self, username, password):
        self.__username = usern...]]></description><category></category></item></channel></rss>