<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[lhr_zz的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/lhr_zz</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; lhr_zz]]></copyright><item><title><![CDATA[关于ant design 国际化初始化]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/135975235</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/135975235</guid><author>lhr_zz</author><pubDate>Thu, 01 Feb 2024 15:52:14 +0800</pubDate><description><![CDATA[当你修改了你的中英文 ， 你会发现 ， 表格上自带的重置，搜索 已经给你翻译好了， 但是左侧的菜单栏以及很多你自己写的按钮是没有翻译的， 这个时候应该怎么办？中注意层级关系，然后记得中英文对照， 这个时候打包编译 这个时候切换你就能看见你修改的那条菜单已经实现了切换。在网上找到了很多 关于国际化的相关内容， 但是跟我的实际情况又不太一样， 特此记录。在你的路由设置中 肯定会有一个页面/接口 啦记录你的菜单。文件里  引用了一个menu的文件， 然后在同目录的。中自己写的或新加的， 记得把需要的语种都加上。]]></description><category></category></item><item><title><![CDATA[Flask 进阶]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/131921212</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/131921212</guid><author>lhr_zz</author><pubDate>Wed, 26 Jul 2023 14:04:55 +0800</pubDate><description><![CDATA[flask 访问项目以外的 文件
]]></description><category></category></item><item><title><![CDATA[关于mac]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/131371817</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/131371817</guid><author>lhr_zz</author><pubDate>Sun, 25 Jun 2023 10:14:42 +0800</pubDate><description><![CDATA[have arm64 need x86_64]]></description><category></category></item><item><title><![CDATA[关于GreaterWMS我踩过的坑]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/129241663</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/129241663</guid><author>lhr_zz</author><pubDate>Mon, 27 Feb 2023 14:51:06 +0800</pubDate><description><![CDATA[GreaterWMS]]></description><category></category></item><item><title><![CDATA[debian 部署nginx & https]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/129183296</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/129183296</guid><author>lhr_zz</author><pubDate>Mon, 27 Feb 2023 14:32:51 +0800</pubDate><description><![CDATA[配置https&nginx的一些操作]]></description><category></category></item><item><title><![CDATA[Flask&&nginx&&uwsgi]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/127647381</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/127647381</guid><author>lhr_zz</author><pubDate>Wed, 02 Nov 2022 16:07:53 +0800</pubDate><description><![CDATA[部署]]></description><category></category></item><item><title><![CDATA[关于git]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/126285773</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/126285773</guid><author>lhr_zz</author><pubDate>Thu, 11 Aug 2022 15:22:40 +0800</pubDate><description><![CDATA[关于git的一些琐事]]></description><category></category></item><item><title><![CDATA[关于react实战]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/126250639</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/126250639</guid><author>lhr_zz</author><pubDate>Tue, 09 Aug 2022 16:44:23 +0800</pubDate><description><![CDATA[关于react 的一些分享]]></description><category></category></item><item><title><![CDATA[每天上一当， 当当不一样 -- sql]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/123016728</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/123016728</guid><author>lhr_zz</author><pubDate>Sat, 19 Feb 2022 12:27:26 +0800</pubDate><description><![CDATA[今天用sqlalchemy修改数据库中的一些数据
UPDATE 表 SET 字段="", 字段2="" WHERE id =筛选条件

由于历史遗留问题， 我有一个字段是json,dumps转义出来的， 导致了一些文字他长这个样子
\u6bcf\u65e5\u575a  如果直接存的话
UPDATE 表 SET 字段=`\u6bcf\u65e5\u575a`, 字段2="" WHERE id =筛选条件

表中他就回变成u6bcfu65e5u575a, 我原计划是使用format  但是还是不太乐观
翻了些]]></description><category></category></item><item><title><![CDATA[关于win下aliyunsdkcore的安装]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/121989169</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/121989169</guid><author>lhr_zz</author><pubDate>Fri, 17 Dec 2021 09:34:13 +0800</pubDate><description><![CDATA[直接搬过来抄的， 连接和本文一毛一样，踩坑记录下
版权声明：本文为优快云博主「莫荒误」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。
原文链接：https://blog.youkuaiyun.com/weixin_45221012/article/details/104974059
配置：
	win10 64位
	python3.7 64位

pycrypto是一个实现了各种算法和协议的信息安全python库。
aliyunsdkcore是阿里云的短信服务。
安装pip insta]]></description><category></category></item><item><title><![CDATA[pandas 读excel，日期变成了数字，pandas方法解决]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/121661704</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/121661704</guid><author>lhr_zz</author><pubDate>Wed, 01 Dec 2021 18:39:23 +0800</pubDate><description><![CDATA[摘抄至

https://blog.youkuaiyun.com/RogerFedereYY/article/details/113756065

简单来说就是日期变成了数字
解决方案如下
def date(para):
    delta = pd.Timedelta(str(int(para))+'days')
    time = pd.to_datetime('1899-12-30') + delta
    return time
data['发货日期'] = data['发货日期'].apply(date)]]></description><category></category></item><item><title><![CDATA[Pywinauto]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/121099785</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/121099785</guid><author>lhr_zz</author><pubDate>Tue, 02 Nov 2021 14:57:11 +0800</pubDate><description><![CDATA[B站上有个大佬的视频是真的不错， 看着他的视频又整理了一些东西, 附上B站链接

https://www.bilibili.com/video/BV1CA411G7HW?p=3

win自动化测试的一些东西

启动/链接方式有2种：
一、	启动（类似双击它）

		path = r"程序路径"
		app = Application(backend="uia").start(path)

   二、 链接（在程序运行前启动程序然后链接）

	   app = Application(backend="uia]]></description><category></category></item><item><title><![CDATA[ELK初学]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/120846374</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/120846374</guid><author>lhr_zz</author><pubDate>Tue, 19 Oct 2021 15:21:55 +0800</pubDate><description><![CDATA[ELK
ELK之Elasticsearch（7版本？）
搜索而生，网站、应用、文档、企业级搜索、地理位置、日志、nginx、商业分析
特点

横向拓展能力
极限性能（毫秒级返回结果）
相关性，（输入abc会出来跟abc相关的）

连接
python可以使用RESTful APi 通过端口9200进行通信也可以用curl

curl -X&lt;VERB&gt; '&lt;PROTOCOL&gt;://&lt;HOST&gt;:&lt;PORT&gt;/&lt;PATH&gt;?&lt;QUERY_STRIN]]></description><category></category></item><item><title><![CDATA[selenium 杂谈]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/117871408</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/117871408</guid><author>lhr_zz</author><pubDate>Sun, 13 Jun 2021 11:34:18 +0800</pubDate><description><![CDATA[一、selenium 抓取不到元素
一开始我以为是iframe的问题 但是页面上并没有  后来我发现了一个shadowDOM模块

涨这个样子，网上搜了搜大概的内容就是这个标签下面是封装好了的 ，跟原始文档有所区分，独立存在。导致了你找不到这个元素，·driver.page_source·都不行，抓取不到，网上找到了2种解决方案，我试了第一种，第二种没用代码尝试过不过手动是可以的，感兴趣的可以试一试
第一种：使用js抓取

1、先定位到shadow-root的宿主节点(此处为id=usercentrics-]]></description><category></category></item><item><title><![CDATA[python 使用js]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/117388528</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/117388528</guid><author>lhr_zz</author><pubDate>Sat, 29 May 2021 17:54:43 +0800</pubDate><description><![CDATA[在专研爬虫的时候 会凭空出现一些恶心的参数，原来的我可能会看一下js然后你想解析 ，但是这两天玩到了新的玩具execjs
安装还是比较简单的

pip install pyexecjs


import execjs
rFile = open("./static/js/test.js", ‘r’, encoding=‘UTF-8’)
testResult = execjs.compile(rFile.read()).call(‘test’)

（3）方法说明
eval()
输入参数：source(JS语句)]]></description><category></category></item><item><title><![CDATA[docker 菜鸟]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/108616200</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/108616200</guid><author>lhr_zz</author><pubDate>Tue, 22 Sep 2020 10:47:16 +0800</pubDate><description><![CDATA[我win开发，所以http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/下载吧
傻瓜式安装后，桌面会出现这哥三

启动中间这个Docker Quickstart Terminal

第一次打开会下载镜像源，

注意，若是打不开（之前已将下好git了）可能是你的git路径不对，右键打开Docker Quickstart Terminal属性,将蓝色部分改成你git的路径就好

然后就可以hello-world了，

docker inf]]></description><category></category></item><item><title><![CDATA[selenium的小操作]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/108349104</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/108349104</guid><author>lhr_zz</author><pubDate>Tue, 01 Sep 2020 19:46:36 +0800</pubDate><description><![CDATA[为了绕过一些奇奇怪怪的反爬，selenium还是很有必要的，简单的写个几点，
1.selenium切换到iframe
讲道理iframe很烦人，切入的时候记得切换出来哦
1.有id，并且唯一，直接写id
driver.switch_to_frame("x-URS-iframe")
driver.switch_to.frame("x-URS-iframe")

2.有name，并且唯一，直接写name
driver.switch_to_frame("xxxx")
driver.switch_to.frame(]]></description><category></category></item><item><title><![CDATA[爬虫与反爬的实现原理]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/108100465</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/108100465</guid><author>lhr_zz</author><pubDate>Wed, 19 Aug 2020 15:46:12 +0800</pubDate><description><![CDATA[爬虫套路之user-agent
爬虫
不管是python还是php，jsva，在你爬取网页的时候都是以python，php，java的‘名义’去爬取的页面，一旦网页发现了这些关键词的时候就不会返回你想要的数据，所以在python中就要自己设置user-agent：
常用的请求头chrome：Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/53]]></description><category></category></item><item><title><![CDATA[捷豹系列]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/107668545</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/107668545</guid><author>lhr_zz</author><pubDate>Wed, 29 Jul 2020 17:36:29 +0800</pubDate><description><![CDATA[新接触的一个无头浏览器，pupprteer
以前都是使用selenium闯荡江湖，没想到折戬沉沙在这里，没有办法获取request headers 中的某参数a，这个a十分的重要，且账户不允许同时登陆，这就给我造成了很大的困扰，但是恰巧pupprteer可以获取，话不多说，先说安装
node 是必须安装的，如何安装自行百度吧
捷豹系列之puppeteer
pupprteer这个东西安装起来十分的费劲，费了我很大的功夫也没有做到全局安装，是真的失败 谁让我想要的在那一头，而我在这一头呢 ，最开始的度娘是告诉我]]></description><category></category></item><item><title><![CDATA[python打包成exe]]></title><link>https://blog.youkuaiyun.com/lhr_zz/article/details/106217593</link><guid>https://blog.youkuaiyun.com/lhr_zz/article/details/106217593</guid><author>lhr_zz</author><pubDate>Tue, 19 May 2020 16:35:43 +0800</pubDate><description><![CDATA[将python程序打包成exe可执行文件有多种方法，这里讲一种最简单最常用的方法，只需要使用pyinstaller命令即可。
一、环境
Windows 7或10 x64
Python 3.6.1
二、需要包
pyinstaller 3.3
pywin32
这里需要注意！！！
在网上找很多使用pyinstaller库将python程序打包成exe的方法都是需要python3.3版本以前的。而python3.6想要打包pyinstaller库不支持，但是经过很多轮尝试之后发现pyinstaller 3.3这个版]]></description><category></category></item></channel></rss>