<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[MG_Lee的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/MG_Lee</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; MG_Lee]]></copyright><item><title><![CDATA[Seata AT 模式实现原理详解]]></title><link>https://blog.csdn.net/MG_Lee/article/details/159976735</link><guid>https://blog.csdn.net/MG_Lee/article/details/159976735</guid><author>MG_Lee</author><pubDate>Thu, 09 Apr 2026 10:02:49 +0800</pubDate><description><![CDATA[Seata AT (Automatic Transaction) 模式是一种基于两阶段提交协议的分布式事务解决方案，它能够在保持业务代码无侵入的前提下实现分布式事务管理。]]></description><category></category></item><item><title><![CDATA[agent调用工具使用langchain实现]]></title><link>https://blog.csdn.net/MG_Lee/article/details/157809691</link><guid>https://blog.csdn.net/MG_Lee/article/details/157809691</guid><author>MG_Lee</author><pubDate>Fri, 06 Feb 2026 17:34:08 +0800</pubDate><description><![CDATA[工具是Agent用于执行特定操作的函数或接口。在LangChain中，工具通常被定义为一个具有name和func（或_run）属性的类。‌12‌name‌：工具的唯一标识符，Agent通过它来识别和选择工具。‌：对工具功能的详细描述，帮助LLM理解何时以及如何使用该工具。‌func‌（或‌_run‌）：工具执行的具体逻辑函数。‌12@tool"""获取指定位置的当前天气。Args:location (str): 地理位置名称，如 '北京'、'纽约'。]]></description><category></category></item><item><title><![CDATA[python多线程和Lock锁和gil锁理解]]></title><link>https://blog.csdn.net/MG_Lee/article/details/151177534</link><guid>https://blog.csdn.net/MG_Lee/article/details/151177534</guid><author>MG_Lee</author><pubDate>Thu, 04 Sep 2025 10:36:04 +0800</pubDate><description><![CDATA[python的多线程本质上是会开启实质性的线程，但因为有gil锁问题，每5ms会释放一次，显然这个并不是为了当前多cpu多线程的共享资源争抢设计的锁，python设计之初，早期因为单cpu同时没有dma，那时如果出现一个长io的显然会阻塞整体，多个线程也无法顺畅运行导致卡顿等。单核时代，多线程主要用于处理io阻塞，而不是并行计算，gil使得引用引用计数的垃圾收集器无需复杂的线程安全设计。]]></description><category></category></item><item><title><![CDATA[https哪些加密]]></title><link>https://blog.csdn.net/MG_Lee/article/details/149332724</link><guid>https://blog.csdn.net/MG_Lee/article/details/149332724</guid><author>MG_Lee</author><pubDate>Mon, 14 Jul 2025 15:59:55 +0800</pubDate><description><![CDATA[‌组件‌‌是否加密‌‌说明‌域名（Hostname）❌ 不加密通过 SNI 明文传输，用于证书匹配318端口号❌ 不加密属于传输层信息（如 443）520URL 路径✅ 加密如/api/data13URL 查询参数✅ 加密如?id=12313请求头（Headers）✅ 加密除Host域名外全部加密12请求体（Body）✅ 加密如表单、JSON 数据215响应头/响应体✅ 加密服务器返回的所有内容48💎 ‌关键结论。]]></description><category></category></item><item><title><![CDATA[pthon变量]]></title><link>https://blog.csdn.net/MG_Lee/article/details/147801997</link><guid>https://blog.csdn.net/MG_Lee/article/details/147801997</guid><author>MG_Lee</author><pubDate>Thu, 08 May 2025 19:14:04 +0800</pubDate><description><![CDATA[闭包概念，在解释语言中都差不多。外部函数，在外部函数定义变量，再定义一个内部函数，并使用外部变量，然后外部函数返回这个内部函数。在python中全局变量污染还是少见，毕竟作用域还是比较严格的。如这样，明知道使用的是全局，此时当然会污染，有点zz。所以python中闭包作用主要还是在延迟计算。pthon的变量相对于js，还是有比较好的严格作用域划分。这应该和它的设计形式有关，逼近通过格式来划分代码块范围。而因为有严格作用域，变量在函数内部，本就有隔离作用。]]></description><category></category></item><item><title><![CDATA[python的@装饰器]]></title><link>https://blog.csdn.net/MG_Lee/article/details/147797708</link><guid>https://blog.csdn.net/MG_Lee/article/details/147797708</guid><author>MG_Lee</author><pubDate>Thu, 08 May 2025 17:15:01 +0800</pubDate><description><![CDATA[【代码】python的装饰器@]]></description><category></category></item></channel></rss>