会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
eliwang
学无止境的小渣渣
博客园
首页
新随笔
联系
订阅
管理
2025年11月15日
threading.local()的实例化机制
摘要: threading.local() 的实例化机制 threading.local() 是全局实例化一次的: 它在模块/类/函数级别(通常在 __init__ 或全局作用域)创建一个单一的 local 对象实例(类型为 _thread._local)。 这个对象本身是共享的(所有线程看到同一个 ID)
阅读全文
posted @ 2025-11-15 19:06 eliwang
阅读(13)
评论(0)
推荐(0)
2025年7月13日
chrome140无法安装扩展程序解决方案
摘要: 一、对于chrome140版本,可以采用如下方案: 快捷方式--右键--属性--目标--添加参数: --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled 二、对于140以前的版本,可以使用如下方案:
阅读全文
posted @ 2025-07-13 16:36 eliwang
阅读(9789)
评论(0)
推荐(2)
2025年6月18日
git协同开发流程
摘要: git切换分支并提交代码完整步骤 步骤 1: 更新本地 master 分支(确保同步) git checkout master # 切换到 master 分支(如果不在) git pull origin master # 从远程拉取最新代码 步骤 2: 创建并切换到新分支 git checkout
阅读全文
posted @ 2025-06-18 18:41 eliwang
阅读(37)
评论(0)
推荐(0)
2025年4月17日
线程池ThreadPoolExecutor
摘要: 常见的情形: 优雅退出示例 import json import time from loguru import logger from pathlib import Path from concurrent.futures import ThreadPoolExecutor, as_complet
阅读全文
posted @ 2025-04-17 01:46 eliwang
阅读(38)
评论(0)
推荐(0)
2025年4月10日
git安全回退及冲突解决
摘要: 一、安全回退 回退暂存区的文件(不影响本地工作区) # 假设你已经修改了一个文件并添加到暂存区 git add <file> # 将文件添加到暂存区 # 现在,如果你想撤回暂存区的更改(恢复到工作区) git reset <file> # 这将文件从暂存区移除,但保留您的更改在工作区 # 查看状态,
阅读全文
posted @ 2025-04-10 03:32 eliwang
阅读(171)
评论(0)
推荐(0)
2025年3月13日
python如何发送邮件
摘要: 以qq邮箱作为示例 #! /usr/bin/env python # -*- coding: utf-8 -*- # 发送邮件.py import smtplib from email.mime.text import MIMEText from email.header import Header
阅读全文
posted @ 2025-03-13 09:14 eliwang
阅读(48)
评论(0)
推荐(0)
2025年1月8日
python微信机器人简单使用以及打包成exe文件
摘要: 一、微信机器人项目:https://github.com/why2lyj/ItChat-UOS 二、简单使用 安装 pip install itchat-uos==1.5.0.dev0 使用 import itchat itchat.auto_login() # itchat.auto_login(
阅读全文
posted @ 2025-01-08 01:48 eliwang
阅读(241)
评论(0)
推荐(0)
2024年11月24日
多线程执行任务时,某个线程抛异常,如何让程序立即退出
摘要: 可以使用os._exit(1) import threading import time import os def worker(name): try: while True: print(f"Thread {name} is working...") time.sleep(1) if name
阅读全文
posted @ 2024-11-24 04:31 eliwang
阅读(68)
评论(0)
推荐(0)
2024年8月29日
frida-dexdump脱壳
摘要: 使用步骤: 1、安装模块 pip install frida-dexdump 2、手机端启动frida-server,并进行端口转发 3、执行脱壳命令 frida-dexdump -U -f 包名 frida-dexdump -U -d -f 包名 【深度脱壳】 4、使用jadx等工具,拖入脱壳后的
阅读全文
posted @ 2024-08-29 14:29 eliwang
阅读(1474)
评论(1)
推荐(0)
2024年8月6日
AndroidStdio编译冲突解决
摘要: 右键打开项目-选择【Open Moudle Settings】进入设置界面 1、JDK版本选择11 2、降低material版本号至1.6.1
阅读全文
posted @ 2024-08-06 13:37 eliwang
阅读(29)
评论(0)
推荐(0)
下一页
公告