摘要: 一,官网下载: 官网: https://www.elastic.co/platform 二,安装 解压: $ tar -zxvf elasticsearch-9.2.2-linux-x86_64.tar.gz 移动到安装目录: $ mv elasticsearch-9.2.2 /opt/soft/ 阅读全文
posted @ 2025-12-13 16:03 刘宏缔的架构森林 阅读(3) 评论(0) 推荐(0)
摘要: 一,代码: import argparse import psutil import os def get_process_list(): with os.popen('ps aux') as f: output = f.read() # print(output) if 'python3 grab 阅读全文
posted @ 2025-12-10 23:26 刘宏缔的架构森林 阅读(4) 评论(0) 推荐(0)
摘要: 一,代码: import argparse # 创建解析器 parser = argparse.ArgumentParser(description="示例程序") # 添加可选参数 parser.add_argument("-b", "--begin", help="输入开始的id") # 得到参 阅读全文
posted @ 2025-12-10 22:53 刘宏缔的架构森林 阅读(5) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-12-06 09:32 刘宏缔的架构森林 阅读(5) 评论(0) 推荐(0)
摘要: 一,自动关闭标签页 代码: def close_browser_tab(): handles = driver.window_handles size = len(handles) if size>5: dest = size-5 for i in range(0,dest): driver.swi 阅读全文
posted @ 2025-12-06 09:10 刘宏缔的架构森林 阅读(6) 评论(0) 推荐(0)
摘要: 一,安装第三方库 $ pip install unidecode 二,代码: import unidecode def latin_to_ascii(text): return unidecode.unidecode(text) # 示例 text = "â é ë ó ñ" # 德语示例 asci 阅读全文
posted @ 2025-12-04 19:30 刘宏缔的架构森林 阅读(2) 评论(0) 推荐(0)
摘要: 一,最新版的下载地址: https://googlechromelabs.github.io/chrome-for-testing/ 如图: 二,较旧版本(115以下)的driver下载: https://chromedriver.storage.googleapis.com/index.html 阅读全文
posted @ 2025-12-02 21:17 刘宏缔的架构森林 阅读(285) 评论(0) 推荐(0)
摘要: 一,报错信息: mysqldump -h localhost -u liushifu -p liubase wines > wines.sql Enter password: Warning: A partial dump from a server that has GTIDs will by d 阅读全文
posted @ 2025-12-02 11:27 刘宏缔的架构森林 阅读(10) 评论(0) 推荐(0)
摘要: 一,报错信息: pymysql.err.OperationalError: (1138, 'Invalid use of NULL value') 原因: 数据库中已经有了值为null的数据时, 此时再把此字段修改成nullable=False 就会报这个错误 二,解决方法之一: 删除字段重新添加 阅读全文
posted @ 2025-12-01 12:45 刘宏缔的架构森林 阅读(6) 评论(0) 推荐(0)
摘要: 一,报错信息: ERROR [flask_migrate] Error: Target database is not up to date. 二,原因: heads和current不一致 $ flask db heads 81c8f6bda7e0 (head) $ flask db current 阅读全文
posted @ 2025-12-01 12:44 刘宏缔的架构森林 阅读(13) 评论(0) 推荐(0)