From fe2567d1ddc4d1bcbf0c3f3020b840bf170d02a7 Mon Sep 17 00:00:00 2001 From: AIboy996 <2207854887@qq.com> Date: Thu, 23 May 2024 13:52:54 +0800 Subject: [PATCH] [update] use gpt-4o --- _ai_summary_cache.json | 1 - _ai_summary_cache2.json | 2 +- docs/About/index.en.md | 17 +++++++++++++++++ docs/About/index.md | 17 +++++++++++++++++ plugins_full.yml | 4 ++-- requirements.txt | 2 +- 6 files changed, 38 insertions(+), 5 deletions(-) delete mode 100644 _ai_summary_cache.json diff --git a/_ai_summary_cache.json b/_ai_summary_cache.json deleted file mode 100644 index d03eba07a..000000000 --- a/_ai_summary_cache.json +++ /dev/null @@ -1 +0,0 @@ -{"\u4e94\u4e00\u66b4\u8d70\u5e7f\u4e1c": {"content_md5": "84aede98ca446560c9cc99d565996026", "ai_summary": "\u4e94\u4e00\u671f\u95f4\uff0c\u4f5c\u8005\u72ec\u81ea\u66b4\u8d70\u5e7f\u4e1c\uff08\u5e7f\u5dde\u3001\u9999\u6e2f\u3001\u6df1\u5733\uff09\uff0c\u4eab\u53d7\u4e86\u5929\u65f6\u5730\u5229\u4eba\u548c\u7684\u65c5\u884c\u4f53\u9a8c\u3002\u5e7f\u4e1c\u8fde\u6708\u66b4\u96e8\u540e\u8fce\u6765\u6674\u6717\u5929\u6c14\uff0c\u76f8\u6bd4\u4e0a\u6d77\uff0c\u5e7f\u4e1c\u65c5\u6e38\u666f\u70b9\u4eba\u5c11\u4e14\u7f8e\u98df\u4e30\u5bcc\u3002\u4f5c\u8005\u5206\u4eab\u4e86\u901a\u5bb5\u7eff\u76ae\u706b\u8f66\u65c5\u884c\u5efa\u8bae\uff0c\u5305\u62ec\u9009\u4e0b\u94fa\u3001\u6ce1\u9762\u3001\u5145\u7535\u5b9d\u548c\u773c\u8033\u9632\u62a4\u7b49\u3002\u9999\u6e2f\u4e4b\u884c\u8f7b\u677e\u4fbf\u6377\uff0c\u6d89\u53ca\u7b7e\u6ce8\u3001\u652f\u4ed8\u3001\u4ea4\u901a\u548c\u4e0a\u7f51\u5efa\u8bae\u3002\u5403\u559d\u73a9\u4e50\u65b9\u9762\uff0c\u54c1\u5c1d\u4e86\u7ca4\u83dc\u3001\u6d77\u9c9c\u7b49\uff0c\u6e38\u89c8\u4e86\u73e0\u6c5f\u3001\u6e2f\u5927\u3001\u6df1\u5733\u6e7e\u7b49\u5730\uff0c\u611f\u53d7\u5230\u6df1\u5733\u7684\u6d3b\u529b\u4e0e\u73b0\u4ee3\u5316\u3002\u6574\u4e2a\u65c5\u7a0b\u4e2d\uff0c\u4f5c\u8005\u8bb0\u5f55\u4e86\u5e7f\u5dde\u7684\u8001\u57ce\u98ce\u60c5\u3001\u9999\u6e2f\u7684\u5b81\u9759\u548c\u6df1\u5733\u7684\u73b0\u4ee3\u5316\u90fd\u5e02\u666f\u8c61\u3002"}, "\u51ac\u304c\u4e00\u756a\u5acc\u3044": {"content_md5": "fdb276d87d161c28fd3c2ae8aa2e403f", "ai_summary": "\u672c\u6587\u4f5c\u8005\u8868\u8fbe\u4e86\u5bf9\u51ac\u5929\u7684\u4e0d\u559c\u6b22\uff0c\u5c24\u5176\u662f\u5728\u6c5f\u6d59\u6caa\u5730\u533a\uff0c\u56e0\u5929\u6c14\u5bd2\u51b7\u3001\u65e0\u4f9b\u6696\u3001\u7f3a\u4e4f\u51ac\u5b63\u6d3b\u52a8\u548c\u4eba\u6587\u4e50\u8da3\uff0c\u4e14\u7a7f\u8863\u590d\u6742\u8d39\u65f6\u3002\u8001\u820d\u7b14\u4e0b\u7684\u6d4e\u5357\u51ac\u5929\u6e29\u6696\u8212\u9002\u5f62\u6210\u5bf9\u6bd4\u3002\u4f5c\u8005\u671f\u5f85\u6625\u5929\u7684\u5230\u6765\uff0c\u5e76\u63d0\u5230\u4e1c\u5317\u7684\u51b0\u96ea\u6d3b\u52a8\u548c\u7f8e\u98df\u662f\u51ac\u5b63\u4eae\u70b9\u3002\u6587\u7ae0\u7ed3\u5c3e\u611f\u53f9\u51ac\u5929\u7684\u4e0d\u4fbf\u548c\u5e0c\u671b\u5176\u5c3d\u5feb\u8fc7\u53bb\u3002"}, "\u5185\u7f6e\u7c7b": {"content_md5": "14d67f3833ee46e01143fa8c28f176c4", "ai_summary": "\u672c\u6559\u7a0b\u4ecb\u7ecd\u4e86Python\u7f16\u7a0b\u7684\u57fa\u7840\u6982\u5ff5\uff0c\u5305\u62ec\u7c7b\u3001\u5bf9\u8c61\u3001\u5185\u7f6e\u51fd\u6570\u3001\u6570\u636e\u7c7b\u578b\u548c\u6a21\u5757\u3002\u8981\u5b66\u4f1a\u4f7f\u7528`dir`\u548c`help`\u51fd\u6570\uff0c\u5b83\u4eec\u80fd\u5e2e\u52a9\u67e5\u8be2\u5bf9\u8c61\u5c5e\u6027\u548c\u83b7\u53d6\u51fd\u6570\u4fe1\u606f\u3002\u7c7b\u662f\u5bf9\u8c61\u7684\u62bd\u8c61\uff0c\u5982`\u8001\u5e08`\u662f\u7c7b\uff0c\u5bf9\u8c61\u662f\u7c7b\u7684\u5b9e\u4f8b\uff0c\u5982\u738b\u8001\u5e08\u3002Python\u4e2d\u4e07\u7269\u7686\u5bf9\u8c61\uff0c\u5185\u7f6e\u6570\u636e\u7c7b\u578b\u5982\u5b57\u7b26\u4e32\u3001\u5217\u8868\u3001\u6574\u6570\u7b49\u90fd\u662f\u7c7b\u3002\u5185\u7f6e\u51fd\u6570\u5982`print`\u548c`help`\u63d0\u4f9b\u4e86\u4ea4\u4e92\u5f0f\u5b66\u4e60\u5de5\u5177\u3002\u901a\u8fc7\u7406\u89e3\u7c7b\u7684\u89c6\u89d2\uff0c\u8bfb\u8005\u80fd\u66f4\u597d\u5730\u638c\u63e1Python\u7684\u57fa\u672c\u6784\u9020\u548c\u64cd\u4f5c\u3002\u6b64\u5916\uff0c\u8fd8\u63d0\u5230\u4e86\u5b57\u7b26\u4e32\u3001\u5217\u8868\u63a8\u5bfc\u5f0f\u7b49\u91cd\u8981\u77e5\u8bc6\u70b9\u3002\u6700\u540e\uff0c\u5185\u7f6e\u51fd\u6570\u5982`print`\u548c`len`\u7b49\u7684\u4f7f\u7528\u65b9\u6cd5\u4e5f\u8fdb\u884c\u4e86\u8bf4\u660e\u3002"}, "\u5185\u7f6e\u5173\u952e\u5b57": {"content_md5": "538b7f572314ad5f9faea3aabe7c4f02", "ai_summary": "\u672c\u6587\u4ecb\u7ecd\u4e86Python\u7f16\u7a0b\u4e2d\u7684\u5173\u952e\u6982\u5ff5\uff0c\u5305\u62ec\u591a\u884c\u903b\u8f91\u5757\uff08\u7f29\u8fdb\uff09\u3001\u81ea\u5b9a\u4e49\u51fd\u6570\uff08`def`\u548c`lambda`\uff09\u3001\u81ea\u5b9a\u4e49\u7c7b\uff08`class`\u548c\u7ee7\u627f\uff09\u3001\u6761\u4ef6\u8bed\u53e5\uff08`if`\u3001`elif`\u3001`if...else`\u548c`match`\uff09\u3001\u5faa\u73af\uff08`for`\u3001`while`\u548c\u63a7\u5236\u7ed3\u6784\u5982`continue`\u3001`break`\u3001`pass`\uff09\u3001`import`\u8bed\u53e5\u3001\u5f02\u5e38\u5904\u7406\uff08`try`\u3001`except`\u3001`else`\u3001`finally`\u3001\u81ea\u5b9a\u4e49\u5f02\u5e38\u548c`assert`\uff09\u3002\u8fd9\u4e9b\u5185\u5bb9\u6db5\u76d6\u4e86\u57fa\u7840\u8bed\u6cd5\u7684\u63a7\u5236\u6d41\u548c\u6570\u636e\u7ed3\u6784\uff0c\u5f3a\u8c03\u4e86\u5b9e\u8df5\u548c\u7406\u89e3\u7684\u91cd\u8981\u6027\u3002\u5efa\u8bae\u901a\u8fc7\u7f16\u5199\u4ee3\u7801\u6765\u52a0\u6df1\u5bf9\u8fd9\u4e9b\u6982\u5ff5\u7684\u7406\u89e3\u3002"}, "\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b": {"content_md5": "01cb620afb279ba70ee8608e23a93745", "ai_summary": "\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Python\u4e2d\u7684\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\uff08OOP\uff09\uff0c\u5f3a\u8c03\u4e86OOP\u5728Python\u4e2d\u7684\u5f3a\u5927\u63a7\u5236\u80fd\u529b\uff0c\u5305\u62ec\u5bf9\u8c61\u7684\u884c\u4e3a\u63a7\u5236\uff08\u5982\u8fed\u4ee3\u3001\u6253\u5370\u3001\u4e0a\u4e0b\u6587\u7ba1\u7406\u7b49\uff09\u3001\u5143\u7c7b\u7684\u5e94\u7528\uff08\u5982\u5b9a\u4e49\u7c7b\u7684\u8fc7\u7a0b\uff09\u3001\u7c7b\u548c\u5b9e\u4f8b\u5c5e\u6027\u3001\u65b9\u6cd5\uff08\u5305\u62ec\u9759\u6001\u65b9\u6cd5\u3001\u7c7b\u65b9\u6cd5\u3001\u9b54\u6cd5\u65b9\u6cd5\u7b49\uff09\u3001\u591a\u6001\u3001\u4ee5\u53ca\u9b54\u6cd5\u65b9\u6cd5\u5982\u6784\u9020\u65b9\u6cd5\u3001\u8868\u793a\u65b9\u6cd5\u3001\u6bd4\u8f83\u548c\u8fd0\u7b97\u7b26\u3001\u8f6c\u6362\u65b9\u6cd5\u3001\u5c5e\u6027\u8bbf\u95ee\u63a7\u5236\u3001\u8fed\u4ee3\u5668\u3001\u63cf\u8ff0\u5668\u3001\u5bb9\u5668\u64cd\u4f5c\u3001\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668\u3001\u53ef\u8c03\u7528\u5bf9\u8c61\u3001\u534f\u7a0b\u548c\u6cdb\u578b\u7b49\u3002\u6587\u7ae0\u8fd8\u6d89\u53ca\u7c7b\u7684\u521b\u5efa\u8fc7\u7a0b\uff0c\u5982\u5143\u7c7b\u7684\u4f7f\u7528\u548c\u7c7b\u7684\u7ee7\u627f\uff0c\u4ee5\u53ca\u5982\u4f55\u901a\u8fc7\u5143\u7c7b\u5b9e\u73b0\u81ea\u5b9a\u4e49\u7c7b\u7684\u884c\u4e3a\u3002\u6700\u540e\uff0c\u4f5c\u8005\u63d0\u9192\u8bfb\u8005\u4e0d\u5fc5\u8fc7\u4e8e\u5173\u6ce8\u590d\u6742\u7684\u8bed\u6cd5\u7ec6\u8282\uff0c\u800c\u5e94\u6ce8\u91cd\u5b9e\u9645\u7f16\u7a0b\u7ecf\u9a8c\u548c\u5e38\u7528\u5e93\u7684\u8fd0\u7528\u3002"}, "\u51fd\u6570\u5f0f\u7f16\u7a0b": {"content_md5": "e3aeb69f4fcd5e6c50e24c4a33a5e853", "ai_summary": "\u51fd\u6570\u5f0f\u7f16\u7a0b\u662f\u4e00\u79cd\u7f16\u7a0b\u8303\u5f0f\uff0c\u5b83\u5c06\u95ee\u9898\u89c6\u4e3a\u65e0\u72b6\u6001\u51fd\u6570\u7684\u5e8f\u5217\u8ba1\u7b97\uff0c\u4fa7\u91cd\u4e8e\u63cf\u8ff0\u95ee\u9898\u800c\u975e\u6307\u4ee4\u3002\u4e0e\u8fc7\u7a0b\u5f0f\u3001\u58f0\u660e\u5f0f\u548c\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u4e0d\u540c\uff0c\u51fd\u6570\u5f0f\u7f16\u7a0b\u5f3a\u8c03\u7eaf\u51fd\u6570\uff0c\u5373\u63a5\u53d7\u8f93\u5165\u540e\u8f93\u51fa\u786e\u5b9a\u7684\u7ed3\u679c\uff0c\u4e0d\u6539\u53d8\u81ea\u8eab\u72b6\u6001\u3002Python\u652f\u6301\u51fd\u6570\u5f0f\u7f16\u7a0b\uff0c\u5305\u62ec\u4f7f\u7528\u5f62\u53c2\u548c\u5b9e\u53c2\u3001\u51fd\u6570\u8fd4\u56de\u503c\u3001\u9012\u5f52\u3001\u8fed\u4ee3\u5668\uff08\u5982\u751f\u6210\u5668\uff09\u3001\u88c5\u9970\u5668\u7b49\u529f\u80fd\u3002\u751f\u6210\u5668\u7b80\u5316\u4e86\u8fed\u4ee3\u5668\u7684\u5b9e\u73b0\uff0c\u800c\u88c5\u9970\u5668\u5219\u7528\u4e8e\u5728\u4e0d\u6539\u53d8\u539f\u51fd\u6570\u4ee3\u7801\u7684\u60c5\u51b5\u4e0b\u6dfb\u52a0\u989d\u5916\u529f\u80fd\uff0c\u5982\u65e5\u5fd7\u3001\u53c2\u6570\u9a8c\u8bc1\u548c\u5f02\u5e38\u5904\u7406\u3002Python\u7684`functools`\u6a21\u5757\u63d0\u4f9b\u4e86\u5b9e\u7528\u7684\u88c5\u9970\u5668\uff0c\u5982\u7f13\u5b58\u548c\u4fdd\u6301\u51fd\u6570\u5143\u4fe1\u606f\u3002"}, "re": {"content_md5": "eded0f54965dbd422a06ef23b4b86755", "ai_summary": "`re`\u662fPython\u6807\u51c6\u5e93\u4e2d\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5757\uff0c\u7528\u4e8e\u5904\u7406\u548c\u5339\u914d\u6587\u672c\u4e2d\u7684\u6a21\u5f0f\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u6587\u672c\u5904\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u6807\u51c6\u5316\u6708\u85aa\u3001\u63d0\u53d6\u7279\u5b9a\u5b57\u7b26\u6a21\u5f0f\u3001\u5206\u5272\u5b57\u7b26\u4e32\u7b49\u3002`re`\u5e93\u63d0\u4f9b\u4e86\u591a\u79cd\u51fd\u6570\u5982`match`, `fullmatch`, `search`, `sub`, `split`\u7b49\uff0c\u7528\u4e8e\u6267\u884c\u5339\u914d\u3001\u67e5\u627e\u548c\u66ff\u6362\u64cd\u4f5c\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u5305\u542b\u4e30\u5bcc\u7684\u8bed\u6cd5\uff0c\u5982\u7279\u6b8a\u5b57\u7b26\uff08\u5982`.`, `^`, `$`, `[]`, `()`\u7b49\uff09\uff0c\u4ee5\u53ca\u53ef\u9009\u7684\u6807\u5fd7\uff08\u5982`re.IGNORECASE`\uff09\u6765\u63a7\u5236\u5339\u914d\u884c\u4e3a\u3002\u901a\u8fc7\u5b9e\u4f8b\u6f14\u793a\u548cAPI\u8c03\u7528\uff0c\u53ef\u4ee5\u7075\u6d3b\u8fd0\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u6587\u672c\u5904\u7406\u3002"}, "time": {"content_md5": "bb4f89beb98a03562485c94a4ea65406", "ai_summary": "Python\u4e2d\u7684time\u6a21\u5757\u63d0\u4f9b\u5e95\u5c42\u65f6\u95f4\u5904\u7406\uff0cdatetime\u6a21\u5757\u5219\u4e3a\u7528\u6237\u53cb\u597d\uff0c\u5305\u542bdate\u3001time\u548cdatetime\u7c7b\uff0c\u7528\u4e8e\u65e5\u671f\u548c\u65f6\u95f4\u64cd\u4f5c\uff0c\u5982\u521b\u5efa\u3001\u89e3\u6790\u3001\u683c\u5f0f\u5316\u548c\u8ba1\u7b97\u3002calender\u5e93\u7528\u4e8e\u67e5\u770b\u65e5\u5386\u3002time\u7c7b\u4e3b\u8981\u7528\u4e8e\u65f6\u95f4\u6233\u548c\u57fa\u672c\u65f6\u95f4\u8868\u793a\uff0c\u800cdatetime\u7c7b\u652f\u6301\u65e5\u671f\u8303\u56f4\u548c\u65f6\u95f4\u8de8\u5ea6\u8ba1\u7b97\u3002\u7279\u522b\u63d0\u5230\u95f0\u79d2\u548cUTC\u65f6\u95f4\u6807\u51c6\u3002date\u7c7b\u53ef\u7528\u4e8e\u6307\u5b9a\u65e5\u671f\u3001\u4eca\u65e5\u3001\u4ece\u5e8f\u6570\u6216\u65f6\u95f4\u6233\u521b\u5efa\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\u3002calender\u5e93\u5219\u63d0\u4f9b\u67e5\u770b\u65e5\u5386\u7684\u529f\u80fd\u3002"}, "\u6bd5\u4e1a.\u65c5\u884c": {"content_md5": "f4988544bda6b645f151592611b1a414", "ai_summary": "\u672c\u6587\u8bb0\u5f55\u4e86\u4e00\u4f4d\u6bd5\u4e1a\u751f\u7684\u65e5\u672c\u4e03\u65e5\u6e38\u7ecf\u5386\uff0c\u5305\u62ec\u9884\u7b97\u7ba1\u7406\uff08\u5982\u7b7e\u8bc1\u3001\u673a\u7968\u3001\u5151\u6362\u8d27\u5e01\uff09\uff0c\u65c5\u884c\u51c6\u5907\uff08\u5982\u8bed\u8a00\u5b66\u4e60\u3001\u652f\u4ed8\u65b9\u5f0f\u548c\u4ea4\u901a\u5361\uff09\uff0c\u4ee5\u53ca\u5728\u65e5\u672c\u7684\u5403\u559d\u73a9\u4e50\u4f53\u9a8c\uff0c\u5982\u5927\u962a\u7684\u5fc3\u658b\u6865\u3001\u73af\u7403\u5f71\u57ce\u3001\u4eac\u90fd\u7684\u53e4\u5bfa\u548c\u4e1c\u4eac\u7684\u6da9\u8c37\u7b49\u5730\u3002\u4f5c\u8005\u5f3a\u8c03\u4e86\u65e5\u672c\u7684\u4ea4\u901a\u4fbf\u5229\u6027\u3001\u670d\u52a1\u6001\u5ea6\u548c\u591a\u8bed\u8a00\u73af\u5883\uff0c\u540c\u65f6\u4e5f\u5206\u4eab\u4e86\u4e00\u4e9b\u5c0f\u63d2\u66f2\uff0c\u5982\u5151\u6362\u8d27\u5e01\u7684\u4e0d\u4fbf\u548c\u5bf9\u65e5\u672c\u751f\u6d3b\u4e60\u60ef\u7684\u89c2\u5bdf\u3002\u6574\u4e2a\u65c5\u7a0b\u82b1\u8d39\u63a7\u5236\u5728\u4e07\u5143\u4ee5\u5185\uff0c\u662f\u4e00\u6b21\u96be\u5fd8\u7684\u6587\u5316\u4f53\u9a8c\u3002"}, "mkdocs\u63d2\u4ef6\u5f00\u53d1": {"content_md5": "647e865dcb1127c095fb03b3d2fdad01", "ai_summary": "\u5f00\u53d1\u8005\u81ea\u521b\u4e86mkdocs-ai-summary\u63d2\u4ef6\uff0c\u7528\u4e8eAI\u6458\u8981\u529f\u80fd\uff0c\u76ee\u524d\u4ec5\u652f\u6301\u901a\u4e49\u5343\u95ee\uff0c\u672a\u6765\u5c06\u6269\u5c55\u5230\u66f4\u591aAI\u6a21\u578b\u3002\u63d2\u4ef6\u7b80\u5355\uff0c\u6682\u65e0ChatGPT\u652f\u6301\uff0c\u56e0\u7f3a\u5c11API key\u3002\u6b22\u8fce\u8bd5\u7528\u5e76\u7406\u89e3\u4ee3\u7801\u6c34\u5e73\u6709\u9650\u3002"}} \ No newline at end of file diff --git a/_ai_summary_cache2.json b/_ai_summary_cache2.json index 158679ee5..9302a0722 100644 --- a/_ai_summary_cache2.json +++ b/_ai_summary_cache2.json @@ -1 +1 @@ -{"\u6bd5\u4e1a.\u65c5\u884c": {"content_md5": "f4988544bda6b645f151592611b1a414", "ai_summary": "\u672c\u6587\u4f5c\u8005\u4e8e2023\u5e746\u670819\u65e5\u81f327\u65e5\u4e0e\u670b\u53cb\u524d\u5f80\u65e5\u672c\u8fdb\u884c\u6bd5\u4e1a\u65c5\u884c\u3002\u65c5\u884c\u671f\u95f4\uff0c\u4ed6\u4eec\u6d89\u8db3\u591a\u4e2a\u57ce\u5e02\uff0c\u5305\u62ec\u5927\u962a\u3001\u5948\u826f\u3001\u4eac\u90fd\u548c\u4e1c\u4eac\uff0c\u4f53\u9a8c\u4e86\u65e5\u672c\u7684\u6587\u5316\u3001\u7f8e\u98df\u53ca\u666f\u70b9\u3002\u65c5\u884c\u5f00\u9500\u63a7\u5236\u5728\u4e07\u5143\u4ee5\u5185\uff0c\u4e3b\u8981\u8d39\u7528\u5305\u62ec\u4f4f\u5bbf\u3001\u4ea4\u901a\u548c\u9910\u996e\u3002\u4f5c\u8005\u7279\u522b\u63d0\u5230\u4e86\u7b7e\u8bc1\u529e\u7406\u8fc7\u7a0b\u3001\u4ea4\u901a\u5efa\u8bae\uff08\u5982\u4f7f\u7528\u4ea4\u901aIC\u5361\uff09\u4ee5\u53ca\u65c5\u884c\u8fc7\u7a0b\u4e2d\u7684\u6d88\u8d39\u63d0\u793a\u3002\u6b64\u5916\uff0c\u4f5c\u8005\u8be6\u7ec6\u63cf\u8ff0\u4e86\u5404\u7c7b\u7f8e\u98df\u4f53\u9a8c\uff0c\u5e76\u8d34\u51fa\u4e86\u591a\u5f20\u666f\u70b9\u53ca\u6d3b\u52a8\u7684\u7167\u7247\u3002\u6574\u4f53\u800c\u8a00\uff0c\u65c5\u884c\u975e\u5e38\u5145\u5b9e\u4e0e\u6109\u5feb\uff0c\u4e5f\u7ed9\u8bfb\u8005\u63d0\u4f9b\u4e86\u5b9e\u7528\u7684\u65e5\u672c\u65c5\u884c\u653b\u7565\u548c\u7ecf\u5386\u5206\u4eab\u3002"}, "\u4e94\u4e00\u66b4\u8d70\u5e7f\u4e1c": {"content_md5": "84aede98ca446560c9cc99d565996026", "ai_summary": "\u4e94\u4e00\u5047\u671f\uff0c\u6211\u4e8e2024\u5e745\u67082\u65e5\u81f37\u65e5\u5728\u4e2d\u56fd\u5e7f\u4e1c\u548c\u9999\u6e2f\u8fdb\u884c\u4e86\u4e00\u573a\u6240\u8c13\u7684\u201c\u66b4\u8d70\u201d\u4e4b\u65c5\u3002\u53bb\u5e74\u5728\u4e0a\u6d77\u7ecf\u5386\u8fc7\u9ad8\u5bc6\u5ea6\u7684\u4eba\u7fa4\u540e\uff0c\u6b64\u6b21\u5e7f\u4e1c\u4e4b\u884c\u663e\u5f97\u66f4\u4e3a\u60ec\u610f\u3002\u5e7f\u4e1c\u7684\u597d\u5929\u6c14\u3001\u4e30\u5bcc\u7684\u65c5\u6e38\u8d44\u6e90\u53ca\u670b\u53cb\u7684\u70ed\u60c5\u966a\u4f34\uff0c\u4f7f\u5f97\u8fd9\u6b21\u65c5\u884c\u5341\u5206\u6109\u5feb\u3002\n\n\u6211\u4eec\u9996\u5148\u4f53\u9a8c\u4e86\u7eff\u76ae\u706b\u8f66\u7684\u591c\u884c\u65c5\u7a0b\uff0c\u5c3d\u7ba1\u6761\u4ef6\u8f83\u4e3a\u8270\u82d9\uff0c\u4f46\u4e0b\u94fa\u7684\u9009\u62e9\u4ee5\u53ca\u9002\u5f53\u7684\u51c6\u5907\uff08\u5982\u5145\u7535\u5b9d\u548c\u8033\u585e\uff09\u4f7f\u5f97\u8fc7\u7a0b\u8f83\u4e3a\u8212\u9002\u3002\u5728\u5e7f\u5dde\u3001\u9999\u6e2f\u548c\u6df1\u5733\u4e09\u5730\uff0c\u7f8e\u98df\u548c\u7f8e\u666f\u63a5\u8fde\u4e0d\u65ad\u3002\u5e7f\u5dde\u7684\u5386\u53f2\u6c1b\u56f4\u3001\u9999\u6e2f\u7684\u7e41\u534e\u4e0e\u6df1\u5733\u7684\u73b0\u4ee3\u5316\u4ee4\u4eba\u5370\u8c61\u6df1\u523b\u3002\u6b64\u5916\uff0c\u670b\u53cb\u7684\u966a\u4f34\u4f7f\u5f97\u6bcf\u4e00\u7ad9\u90fd\u589e\u6dfb\u4e86\u4e0d\u5c11\u4e50\u8da3\u3002\n\n\u5728\u6df1\u5733\uff0c\u6211\u4eec\u4f53\u9a8c\u4e86\u57ce\u5e02\u7684\u751f\u6d3b\u6c14\u606f\uff0c\u54c1\u5c1d\u4e86\u5730\u9053\u7684\u7f8e\u98df\uff0c\u5e76\u4eab\u53d7\u4e86\u4e30\u5bcc\u7684\u6587\u5316\u751f\u6d3b\u3002\u5c3d\u7ba1\u5929\u6c14\u708e\u70ed\uff0c\u4f46\u9ad8\u6548\u7684\u57ce\u5e02\u5efa\u8bbe\u4e0e\u5145\u6ee1\u6d3b\u529b\u7684\u6c14\u6c1b\u8ba9\u4eba\u611f\u89c9\u975e\u5e38\u8212\u9002\u3002\n\n\u6574\u4f53\u4e0a\uff0c\u8fd9\u6b21\u201c\u66b4\u8d70\u5e7f\u4e1c\u201d\u4e0d\u4ec5\u8ba9\u6211\u9886\u7565\u4e86\u5357\u65b9\u57ce\u5e02\u7684\u72ec\u7279\u9b45\u529b\uff0c\u8fd8\u8ba9\u6211\u6df1\u523b\u4f53\u9a8c\u5230\u4e0e\u597d\u53cb\u540c\u884c\u7684\u4e50\u8da3\uff0c\u662f\u4e00\u6b21\u96be\u5fd8\u7684\u4f53\u9a8c\u3002"}, "\u51ac\u304c\u4e00\u756a\u5acc\u3044": {"content_md5": "fdb276d87d161c28fd3c2ae8aa2e403f", "ai_summary": "\u7528\u6237\u8868\u8fbe\u4e86\u5bf9\u51ac\u5929\u7684\u5f3a\u70c8\u4e0d\u559c\u6b22\uff0c\u5c24\u5176\u662f\u6c5f\u6d59\u6caa\u5730\u533a\u7684\u51ac\u5929\uff0c\u56e0\u4e3a\u5176\u5bd2\u51b7\u4e14\u7f3a\u4e4f\u4f9b\u6696\u8bbe\u65bd\u3002\u4ed6\u63d0\u5230\u4e86\u4e0e\u51ac\u5929\u76f8\u5173\u7684\u79cd\u79cd\u4e0d\u4fbf\u5982\u7a7f\u7740\u7b28\u91cd\u3001\u6237\u5916\u6d3b\u52a8\u53d7\u9650\u7b49\u3002\u6b64\u5916\uff0c\u4ed6\u8fd8\u63d0\u5230\u867d\u7136\u8001\u820d\u66fe\u8d5e\u7f8e\u6d4e\u5357\u7684\u51ac\u5929\uff0c\u4f46\u4ed6\u4e2a\u4eba\u7684\u4f53\u9a8c\u4e0e\u6b64\u76f8\u53bb\u751a\u8fdc\u3002\u51ac\u5b63\u7684\u793e\u4ea4\u6d3b\u52a8\u4e3b\u8981\u96c6\u4e2d\u5728\u8fc7\u5e74\u65f6\u671f\uff0c\u53ef\u968f\u7740\u5e74\u9f84\u589e\u957f\uff0c\u8fc7\u5e74\u7684\u4e50\u8da3\u9010\u6e10\u51cf\u5c11\u3002\u4ed6\u8fd8\u63d0\u5230\u4e1c\u5317\u7684\u51ac\u5929\u4f3c\u4e4e\u66f4\u6709\u8da3\uff0c\u6709\u6ed1\u51b0\u548c\u7279\u8272\u98df\u7269\uff0c\u5bf9\u4e0e\u6b64\u5bf9\u6bd4\u4f7f\u4ed6\u5bf9\u81ea\u5df1\u6240\u5728\u5730\u7684\u51ac\u5929\u66f4\u4e3a\u5931\u671b\u3002\u6700\u540e\uff0c\u4ed6\u8868\u8fbe\u4e86\u5bf9\u51ac\u5929\u7ed3\u675f\u7684\u5f3a\u70c8\u671f\u5f85\u3002"}, "mkdocs\u63d2\u4ef6\u5f00\u53d1": {"content_md5": "c21745f59af6dae5a8740e46a4c0aa64", "ai_summary": "\u6587\u7ae0\u8ba8\u8bba\u4e86\u4f5c\u8005\u4e3amkdocs\u5f00\u53d1\u7684\u4e00\u4e2a\u63d2\u4ef6\uff0c\u540d\u4e3a[mkdocs-ai-summary]\uff0c\u8be5\u63d2\u4ef6\u6dfb\u52a0\u4e86AI\u6458\u8981\u529f\u80fd\uff0c\u76ee\u524d\u652f\u6301\u963f\u91cc\u7684\u901a\u4e49\u5343\u95ee\u548cChatGPT\u6a21\u578b\u3002\u4f5c\u8005\u8868\u793a\u63d2\u4ef6\u4ee3\u7801\u91cf\u4e0d\u5927\uff0c\u6c34\u5e73\u6709\u9650\uff0c\u5e76\u6b22\u8fce\u793e\u533a\u8d21\u732e\uff0c\u5e0c\u671b\u672a\u6765\u589e\u52a0\u66f4\u591aAI\u6a21\u578b\u7684\u652f\u6301\u3002\u8fd9\u4e2a\u529f\u80fd\u4e3a\u4f7f\u7528mkdocs\u7684\u7528\u6237\u63d0\u4f9b\u4e86\u4e00\u4e2a\u76f4\u89c2\u7684\u6458\u8981\u5de5\u5177\uff0c\u589e\u5f3a\u4e86\u5185\u5bb9\u5c55\u793a\u7684\u6548\u7387\u548c\u5438\u5f15\u529b\u3002"}, "\u5185\u7f6e\u7c7b": {"content_md5": "14d67f3833ee46e01143fa8c28f176c4", "ai_summary": "\u6b64\u6587\u7ae0\u8be6\u7ec6\u4ecb\u7ecd\u4e86Python\u8bed\u8a00\u4e2d\u7684\u57fa\u7840\u6982\u5ff5\u4ee5\u53ca\u5982\u4f55\u5229\u7528\u5185\u7f6e\u7684\u5e2e\u52a9\u529f\u80fd\u6765\u5b66\u4e60Python\u3002\u9996\u5148\uff0c\u4f7f\u7528`help()`\u51fd\u6570\u53ef\u4ee5\u4ea4\u4e92\u5f0f\u5730\u67e5\u8be2Python\u4e2d\u7684\u6a21\u5757\u3001\u5173\u952e\u8bcd\u6216\u8005\u4e3b\u9898\uff0c\u800c`dir()`\u51fd\u6570\u7528\u4e8e\u5c55\u793a\u5f53\u524d\u547d\u540d\u7a7a\u95f4\u4e2d\u7684\u53d8\u91cf\u6216\u8005\u4e00\u4e2a\u5bf9\u8c61\u7684\u6240\u6709\u5c5e\u6027\u3002\u63a5\u7740\uff0c\u6587\u7ae0\u4ece\u7c7b\u7684\u89d2\u5ea6\u6df1\u5165\u8bb2\u89e3\u4e86Python\u7684\u903b\u8f91\u7ed3\u6784\uff0c\u5f3a\u8c03\u51fd\u6570\u3001\u6a21\u5757\u3001\u53d8\u91cf\u7b49\u51e0\u4e4e\u6240\u6709\u5143\u7d20\u5728Python\u4e2d\u90fd\u662f\u4ee5\u5bf9\u8c61\u7684\u5f62\u5f0f\u5b58\u5728\u3002\u5185\u7f6e\u6570\u636e\u7c7b\u578b\u5982\u5b57\u7b26\u4e32\u3001\u5217\u8868\u3001\u5b57\u5178\u7b49\u90fd\u88ab\u8be6\u7ec6\u8bb2\u89e3\uff0c\u5305\u62ec\u5b83\u4eec\u7684\u521b\u5efa\u3001\u64cd\u4f5c\u65b9\u6cd5\u4ee5\u53ca\u5e38\u89c1\u7528\u6cd5\u3002\u6b64\u5916\uff0c\u901a\u8fc7\u5b57\u7b26\u4e32\u7684\u5b9e\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u5b57\u7b26\u4e32\u5b57\u9762\u503c\u548c\u8f6c\u4e49\u5e8f\u5217\u3002\u6587\u7ae0\u8fd8\u63a2\u8ba8\u4e86\u5217\u8868\u63a8\u5bfc\u5f0f\u7684\u8bed\u6cd5\uff0c\u89e3\u91ca\u4e86\u5982\u4f55\u7528\u66f4\u7d27\u51d1\u7684\u4ee3\u7801\u5b8c\u6210\u5217\u8868\u521d\u59cb\u5316\u3002\u6700\u540e\uff0c\u5e38\u7528\u7684\u5185\u7f6e\u51fd\u6570\u5982`print`\u548c`len`\u4e5f\u88ab\u8bf4\u660e\uff0c\u5f3a\u8c03\u4e86\u5b66\u4e60\u8fd9\u4e9b\u51fd\u6570\u7684\u53c2\u6570\u548c\u529f\u80fd\u5bf9\u4e8e\u6709\u6548\u4f7f\u7528Python\u81f3\u5173\u91cd\u8981\u3002\u6574\u4f53\u800c\u8a00\uff0c\u6587\u7ae0\u6df1\u5165\u6d45\u51fa\u5730\u89e3\u91ca\u4e86Python\u7f16\u7a0b\u7684\u6838\u5fc3\u7406\u5ff5\u548c\u64cd\u4f5c\uff0c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\u7cfb\u7edf\u5730\u5b66\u4e60\u4e0e\u53c2\u8003\u3002"}, "\u5185\u7f6e\u5173\u952e\u5b57": {"content_md5": "538b7f572314ad5f9faea3aabe7c4f02", "ai_summary": "\u672c\u6587\u6df1\u5165\u8bb2\u89e3\u4e86Python\u4e2d\u5173\u952e\u7684\u8bed\u6cd5\u5143\u7d20\u4e0e\u6982\u5ff5\uff0c\u9996\u5148\u4ecb\u7ecd\u4e86\u4ee3\u7801\u7f29\u8fdb\u7684\u91cd\u8981\u6027\u548c\u65b9\u6cd5\uff0c\u63a8\u8350\u4f7f\u7528\u56db\u4e2a\u7a7a\u683c\u8fdb\u884c\u7f29\u8fdb\u3002\u63a5\u7740\uff0c\u8be6\u7ec6\u8ba8\u8bba\u4e86\u5982\u4f55\u5b9a\u4e49\u548c\u8c03\u7528\u81ea\u5b9a\u4e49\u51fd\u6570\u4e0e\u533f\u540d\u51fd\u6570\uff0c\u4ee5\u53ca\u51fd\u6570\u7684\u53c2\u6570\u4f20\u9012\u65b9\u5f0f\u3002\u6587\u7ae0\u8fdb\u4e00\u6b65\u89e3\u91ca\u4e86\u7c7b\u7684\u521b\u5efa\u3001\u521d\u59cb\u5316\u3001\u7ee7\u627f\u4ee5\u53ca\u7c7b\u7684\u5185\u90e8\u7ed3\u6784\uff0c\u5f3a\u8c03\u4e86`__new__`\u548c`__init__`\u65b9\u6cd5\u7684\u4f5c\u7528\u548c\u533a\u522b\uff0c\u4ee5\u53ca\u7c7b\u7684\u79c1\u5bc6\u6027\u548c\u72ec\u7acb\u547d\u540d\u7a7a\u95f4\u3002\u6d89\u53ca\u4e86`if`\u548c`match`\u6761\u4ef6\u8bed\u53e5\u7684\u4f7f\u7528\uff0c\u4ee5\u53ca`for`\u548c`while`\u5faa\u73af\u7684\u7ed3\u6784\u548c\u63a7\u5236\u65b9\u6cd5\uff0c\u5305\u62ec`continue`, `break`\u548c`pass`\u7684\u5e94\u7528\u3002\u6700\u540e\uff0c\u8be6\u8ff0\u4e86\u5982\u4f55\u901a\u8fc7`try`\u548c`except`\u5904\u7406\u7a0b\u5e8f\u4e2d\u7684\u5f02\u5e38\uff0c\u81ea\u5b9a\u4e49\u5f02\u5e38\u7684\u521b\u5efa\u548c\u89e6\u53d1\uff0c\u4ee5\u53ca`assert`\u8bed\u53e5\u7684\u7528\u9014\u3002\u8fd9\u4e9b\u5185\u5bb9\u4e0d\u4ec5\u662fPython\u7f16\u7a0b\u7684\u57fa\u7840\uff0c\u4e5f\u662f\u65e5\u5e38\u4f7f\u7528\u4e2d\u5e38\u89c1\u7684\u5b9e\u7528\u6280\u5de7\u3002"}, "\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b": {"content_md5": "01cb620afb279ba70ee8608e23a93745", "ai_summary": "\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\uff08OOP\uff09\u5728Python\u4e2d\u5177\u6709\u975e\u5e38\u9ad8\u7684\u7075\u6d3b\u6027\u548c\u4e30\u5bcc\u529f\u80fd\uff0c\u5141\u8bb8\u7528\u6237\u81ea\u5b9a\u4e49\u591a\u79cd\u64cd\u4f5c\u884c\u4e3a\u5982\u8fed\u4ee3\u3001\u8f93\u51fa\u3001\u8fd0\u7b97\u7b26\u91cd\u8f7d\u7b49\u3002\u5176\u4e2d\u5305\u62ec\u901a\u8fc7\u5143\u7c7b\u6765\u63a7\u5236\u7c7b\u7684\u5b9a\u4e49\u8fc7\u7a0b\uff0c\u8feb\u4f7f\u65b9\u6cd5\u547d\u540d\u4f7f\u7528\u5c0f\u5199\u7b49\u3002Python\u5bf9\u8bed\u6cd5\u91cd\u8f7d\u81ea\u7531\u5ea6\u6781\u9ad8\uff0c\u8fd9\u4e5f\u8ba9\u5404\u79cd\u5e93\u53ef\u4ee5\u5b9e\u73b0\u591a\u6837\u7684\u884c\u4e3a\u3002\n\nPython\u4e2d\u7684\u7c7b\u662f\u5bf9\u8c61\u7684\u62bd\u8c61\uff0c\u7c7b\u7684\u4f7f\u7528\u4e3b\u8981\u4f9d\u8d56\u4e8e`class`\u5173\u952e\u5b57\uff0c\u652f\u6301\u5c5e\u6027\u548c\u65b9\u6cd5\u8bbf\u95ee\u3001\u7c7b\u7684\u7ee7\u627f\u4ee5\u53ca\u5b9e\u4f8b\u7684\u521b\u5efa\u7b49\u529f\u80fd\u3002\u7c7b\u63d0\u4f9b\u4e86\u4ee3\u7801\u590d\u7528\u548c\u7b80\u5316\u7684\u4f18\u52bf\uff0c\u540c\u65f6OOP\u8fd8\u652f\u6301\u5c01\u88c5\u3001\u7ee7\u627f\u548c\u591a\u6001\u7b49\u7279\u6027\u3002\u7c7b\u4e2d\u7684\u9b54\u6cd5\u65b9\u6cd5\u4f7f\u5f97\u7528\u6237\u80fd\u591f\u63a7\u5236\u51e0\u4e4e\u6240\u6709Python\u7279\u5b9a\u7684\u884c\u4e3a\u3002\n\n\u6b64\u5916\uff0cPython\u4e2d\u7684\u7c7b\u53ef\u4ee5\u901a\u8fc7\u88c5\u9970\u5668\u8fdb\u4e00\u6b65\u589e\u5f3a\u65b9\u6cd5\u7684\u529f\u80fd\uff0c\u4f8b\u5982`@staticmethod`\u3001`@classmethod`\u548c`@property`\u7b49\u3002\u901a\u8fc7\u8fd9\u4e9b\u5de5\u5177\u548c\u6280\u672f\uff0cPython\u7684\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u63d0\u4f9b\u4e86\u5f3a\u5927\u800c\u7075\u6d3b\u7684\u7f16\u7a0b\u8303\u5f0f\uff0c\u9002\u7528\u4e8e\u5f00\u53d1\u5404\u79cd\u89c4\u6a21\u7684\u5e94\u7528\u7a0b\u5e8f\u3002"}, "\u51fd\u6570\u5f0f\u7f16\u7a0b": {"content_md5": "e3aeb69f4fcd5e6c50e24c4a33a5e853", "ai_summary": "\u51fd\u6570\u5f0f\u7f16\u7a0b\u662f\u7f16\u7a0b\u8303\u578b\u4e4b\u4e00\uff0c\u4e3b\u8981\u5c06\u95ee\u9898\u5206\u89e3\u4e3a\u4e00\u7cfb\u5217\u51fd\u6570\uff0c\u4fa7\u91cd\u4e8e\u65e0\u72b6\u6001\u548c\u4e0d\u53ef\u53d8\u6570\u636e\u3002\u4e0e\u8fc7\u7a0b\u5f0f\u7f16\u7a0b\u3001\u58f0\u660e\u5f0f\u7f16\u7a0b\u548c\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u76f8\u533a\u522b\u3002\u5728Python\u4e2d\uff0c\u51fd\u6570\u5f0f\u7f16\u7a0b\u5305\u62ec\u591a\u79cd\u9ad8\u7ea7\u529f\u80fd\uff0c\u5982\u9012\u5f52\u3001\u8fed\u4ee3\u5668\u3001\u751f\u6210\u5668\u3001\u88c5\u9970\u5668\u7b49\u3002\n\n\u5177\u4f53\u5730\uff0c\u5728Python\u4e2d\uff0c\u51fd\u6570\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u9ed8\u8ba4\u503c\u5b9a\u4e49\u5f62\u53c2\u548c\u5b9e\u53c2\uff0c\u652f\u6301\u4f4d\u7f6e\u5b9e\u53c2\u548c\u5173\u952e\u5b57\u5b9e\u53c2\uff0c\u5e76\u4e14\u652f\u6301\u5f62\u53c2\u6253\u5305\u548c\u5b9e\u53c2\u89e3\u5305\u3002\u8fed\u4ee3\u5668\u5141\u8bb8\u6309\u9700\u8ba1\u7b97\uff0c\u8282\u7ea6\u8d44\u6e90\u3002\u751f\u6210\u5668\u5219\u8fdb\u4e00\u6b65\u7b80\u5316\u8fed\u4ee3\u5668\u7684\u521b\u5efa\uff0c\u4f7f\u5f97\u51fd\u6570\u80fd\u591f\u5728\u9700\u8981\u65f6\u624d\u6267\u884c\u8ba1\u7b97\u3002\n\n\u88c5\u9970\u5668\u63d0\u4f9b\u4e00\u79cd\u6269\u5c55\u51fd\u6570\u529f\u80fd\u7684\u65b9\u6cd5\uff0c\u4e0d\u9700\u8981\u4fee\u6539\u51fd\u6570\u672c\u8eab\u7684\u4ee3\u7801\uff0c\u53ef\u7528\u4e8e\u65e5\u5fd7\u8bb0\u5f55\u3001\u72b6\u6001\u9a8c\u8bc1\u7b49\u591a\u79cd\u5e94\u7528\u573a\u666f\u3002Python\u7684`functools`\u5e93\u8fd8\u63d0\u4f9b\u4e86\u591a\u4e2a\u5185\u7f6e\u88c5\u9970\u5668\u4ee5\u652f\u6301\u8bf8\u5982\u7f13\u5b58\u548c\u4fdd\u7559\u51fd\u6570\u5143\u6570\u636e\u7b49\u529f\u80fd\u3002\n\n\u901a\u8fc7\u4ee5\u4e0a\u7279\u6027\uff0c\u51fd\u6570\u5f0f\u7f16\u7a0b\u5728Python\u4e2d\u53ef\u4ee5\u9ad8\u6548\u5730\u5904\u7406\u6570\u636e\uff0c\u589e\u52a0\u4ee3\u7801\u7684\u6a21\u5757\u5316\u548c\u53ef\u91cd\u7528\u6027\uff0c\u540c\u65f6\u4fdd\u6301\u4ee3\u7801\u7684\u7b80\u6d01\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002"}, "re": {"content_md5": "eded0f54965dbd422a06ef23b4b86755", "ai_summary": "Python\u7684`re`\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f3a\u5927\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u5f15\u64ce\uff0c\u7528\u4e8e\u6267\u884c\u4e0e\u5b57\u7b26\u4e32\u5339\u914d\u76f8\u5173\u7684\u591a\u79cd\u64cd\u4f5c\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\uff08Regex\uff09\u662f\u4e00\u79cd\u8868\u793a\u5b57\u7b26\u4e32\u7684\u6a21\u5f0f\u7684\u65b9\u5f0f\uff0c\u5e7f\u6cdb\u7528\u4e8e\u641c\u7d22\u3001\u66ff\u6362\u4ee5\u53ca\u6570\u636e\u63d0\u53d6\u7b49\u64cd\u4f5c\u3002\u5728Python\u4e2d\uff0c`re`\u6a21\u5757\u652f\u6301\u5982\u6570\u5b57\u3001\u5b57\u6bcd\u548c\u7279\u6b8a\u5b57\u7b26\u7684\u7279\u5b9a\u6a21\u5f0f\u5339\u914d\uff0c\u5e76\u53ef\u5728\u5b57\u7b26\u4e32\u4e2d\u5e94\u7528\u8fd9\u4e9b\u6a21\u5f0f\u6765\u8fdb\u884c\u641c\u7d22\u6216\u6570\u636e\u63d0\u53d6\u7b49\u4efb\u52a1\u3002\n\n`re`\u7684\u4e3b\u8981\u529f\u80fd\u5305\u62ec\uff1a\n- \u641c\u7d22 (`search`)\n- \u5339\u914d (`match`, `fullmatch`)\n- \u66ff\u6362 (`sub`, `subn`)\n- \u5206\u5272 (`split`)\n- \u67e5\u627e (`findall`, `finditer`)\n- \u7f16\u8bd1\u6b63\u5219\u8868\u8fbe\u5f0f (`compile`)\n- \u6e05\u9664\u7f13\u5b58 (`purge`)\n- \u53d6\u6d88\u8f6c\u4e49 (`escape`)\n\n\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u5199\u6cd5\u5305\u62ec\u591a\u79cd\u5143\u5b57\u7b26\uff0c\u5982`\\d`\u8868\u793a\u6570\u5b57\uff0c`\\w`\u8868\u793a\u5b57\u6bcd\u548c\u6570\u5b57\uff0c\u4ee5\u53ca\u591a\u79cd\u64cd\u4f5c\u7b26\u5982`*`\uff08\u5339\u914d0\u6b21\u6216\u591a\u6b21\uff09\u548c`+`\uff08\u5339\u914d1\u6b21\u6216\u591a\u6b21\uff09\u3002\u6b64\u5916\uff0c`re`\u6a21\u5757\u8fd8\u63d0\u4f9b\u591a\u79cd\u6a21\u5f0f\u6807\u5fd7\u4ee5\u9002\u5e94\u4e0d\u540c\u7684\u5339\u914d\u9700\u6c42\uff0c\u5982\u5ffd\u7565\u5927\u5c0f\u5199\uff08`IGNORECASE`\uff09\u6216\u591a\u884c\u5339\u914d\uff08`MULTILINE`\uff09\u3002\n\n\u901a\u8fc7\u5728\u7ebf\u5de5\u5177\u5982regex101.com\uff0c\u7528\u6237\u53ef\u4ee5\u65b9\u4fbf\u5730\u6d4b\u8bd5\u548c\u8c03\u6574\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u786e\u4fdd\u5176\u6b63\u786e\u6027\u548c\u6548\u7387\u3002\u6b64\u5916\uff0c\u7406\u89e3\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u590d\u6742\u6027\u5e76\u901a\u8fc7\u5b9e\u4f8b\u8fdb\u884c\u5b66\u4e60\u53ef\u4ee5\u66f4\u597d\u5730\u638c\u63e1\u5176\u5f3a\u5927\u529f\u80fd\uff0c\u5229\u7528\u5b83\u8fdb\u884c\u6709\u6548\u7684\u6587\u672c\u5904\u7406\u548c\u6570\u636e\u5206\u6790\u3002"}, "time": {"content_md5": "bb4f89beb98a03562485c94a4ea65406", "ai_summary": "Python\u4e2d\u5e38\u7528\u7684\u65f6\u95f4\u76f8\u5173\u6807\u51c6\u5e93\u5305\u62ectime\u3001datetime\u548ccalendar\uff0c\u5404\u81ea\u63d0\u4f9b\u4e0d\u540c\u5c42\u6b21\u7684\u63a5\u53e3\u4e0e\u529f\u80fd\u3002time\u5e93\u8f83\u5e95\u5c42\uff0c\u4e3b\u8981\u7531C\u7f16\u5199\uff0c\u63d0\u4f9b\u57fa\u7840\u65f6\u95f4\u5904\u7406\u529f\u80fd\u3002\u5b83\u5b9a\u4e49\u201c\u79d2\u201d\u4f5c\u4e3a\u56fd\u9645\u5355\u4f4d\u5236\u4e2d\u65f6\u95f4\u7684\u57fa\u672c\u5355\u4f4d\uff0c\u6b64\u5916\u4ecb\u7ecd\u4e86\u65f6\u95f4\u6233\uff08\u81ea1972\u5e741\u67081\u65e5\u96f6\u65f6\u8d77\u7684\u79d2\u6570\uff09\u548c\u5404\u79cd\u65f6\u95f4\u8868\u793a\u6cd5\uff08\u65f6\u95f4\u6233\u3001\u5b57\u7b26\u4e32\u3001\u7ed3\u6784\u5316\u6570\u636e\u7b49\uff09\u3002time\u6a21\u5757\u5141\u8bb8\u65f6\u95f4\u7c7b\u578b\u7684\u8f6c\u5316\uff0c\u5982\u65f6\u95f4\u6233\u8f6c\u6362\u6210\u5143\u7ec4\uff0c\u5143\u7ec4\u8f6c\u6362\u6210\u5b57\u7b26\u4e32\u7b49\uff0c\u5e76\u652f\u6301\u4e0e\u65f6\u533a\u76f8\u5173\u7684\u64cd\u4f5c\u3002\n\ndatetime\u5e93\u5219\u63d0\u4f9b\u66f4\u9ad8\u7ea7\u7684\u65e5\u671f\u4e0e\u65f6\u95f4\u5904\u7406\uff0c\u652f\u6301\u65e5\u671f\u65f6\u95f4\u7684\u6570\u5b66\u8fd0\u7b97\u5e76\u6613\u4e8e\u683c\u5f0f\u5316\u8f93\u51fa\u548c\u5904\u7406\u3002\u63d0\u4f9b\u7684\u7c7b\u5305\u62ecdatetime\u3001date\u3001time\u53catimedelta\u7b49\uff0c\u5176\u4e2ddatetime\u7c7b\u662f\u96c6\u6210\u4e86\u5177\u4f53\u65f6\u95f4\u7684date\u7c7b\u3002datetime\u652f\u6301\u521b\u5efa\u7279\u5b9a\u65e5\u671f\u3001\u6267\u884c\u65e5\u671f\u65f6\u95f4\u8fd0\u7b97\u7b49\u529f\u80fd\u3002\n\ncalendar\u5e93\u5219\u662f\u4e00\u4e2a\u751f\u6210\u6708\u5386\u7684\u5de5\u5177\u5e93\uff0c\u63d0\u4f9b\u65b9\u4fbf\u67e5\u770b\u6708\u5386\u7684\u529f\u80fd\u3002\u6574\u4f53\u800c\u8a00\uff0c\u8fd9\u4e9b\u5e93\u4e3aPython\u4e2d\u7684\u65f6\u95f4\u65e5\u671f\u5904\u7406\u63d0\u4f9b\u4e86\u5168\u9762\u7684\u652f\u6301\u548c\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u9002\u7528\u4e8e\u591a\u79cd\u9700\u6c42\u573a\u666f\u3002"}} \ No newline at end of file +{"\u7ad9\u5185\u5bfc\u822a\ud83e\udded": {"content_md5": "3a4602b4444493d5d2237217a2af275e", "ai_summary": "\u672c\u7ad9\u6db5\u76d6\u591a\u4e2a\u677f\u5757\uff0c\u5305\u62ecAbout\uff08\u57fa\u672c\u4fe1\u606f\uff09\u3001Note\uff08\u6559\u7a0b\u548c\u7b14\u8bb0\uff09\u3001Blog\uff08\u65e5\u5e38\u8bb0\u5f55\uff09\u3001Python\uff08\u7f16\u7a0b\u77e5\u8bc6\uff09\u3001Project\uff08\u5f00\u6e90\u9879\u76ee\uff09\u3001Statistics\uff08\u4e13\u4e1a\u76f8\u5173\uff09\u3001SomeMath\uff08\u6570\u5b66\uff09\u3001PlayGround\uff08\u8c03\u8bd5markdown\u6269\u5c55\uff09\u548cTags\uff08\u5206\u7c7b\u6807\u7b7e\uff09\u3002\u7ad9\u70b9\u529f\u80fd\u591a\u6837\uff0c\u5305\u62ecAI\u6458\u8981\uff08\u901a\u8fc7mkdocs-ai-summary\u63d2\u4ef6\uff09\u3001\u5206\u7c7b\u6807\u7b7e\u3001\u5f3a\u5927\u7684\u641c\u7d22\u529f\u80fd\uff08\u652f\u6301\u82f1\u6587\u548c\u65e5\u6587\uff0c\u6682\u4e0d\u652f\u6301\u4e2d\u6587\uff09\u3001\u9875\u9762\u53cd\u9988\uff08\u901a\u8fc7Google Analytics\uff09\u3001\u8bc4\u8bba\u529f\u80fd\uff08\u901a\u8fc7giscus\uff0c\u9700GitHub\u8d26\u53f7\uff09\u3001RSS\u8ba2\u9605\uff08mkdocs-rss-plugin\uff09\u4ee5\u53ca\u968f\u661f\u671f\u53d8\u5316\u7684\u4e3b\u9898\u8272\u3002\u6b64\u5916\uff0c\u672c\u7ad9\u8ba1\u5212\u652f\u6301\u591a\u8bed\u8a00\u7248\uff08\u9ed8\u8ba4\u4e2d\u6587\uff09\u3002"}, "\u6bd5\u4e1a.\u65c5\u884c": {"content_md5": "f4988544bda6b645f151592611b1a414", "ai_summary": "2023\u5e746\u670819\u65e5\u81f327\u65e5\uff0c\u6211\u548c\u9ad8\u4e2d\u631a\u53cb\u5c0f\u767d\u5728\u65e5\u672c\u5ea6\u8fc7\u4e86\u4e00\u5468\u7684\u6bd5\u4e1a\u65c5\u884c\uff0c\u5e76\u4e0e\u5927\u5b66\u5ba4\u53cb\u534e\u54e5\u591a\u6b21\u78b0\u9762\u3002\u65c5\u884c\u8d39\u7528\u5927\u7ea6\u5728\u4e07\u5143\u4ee5\u5185\uff0c\u7b7e\u8bc1\u901a\u8fc7\u6307\u5b9a\u65c5\u884c\u793e\u529e\u7406\uff0c\u9700\u5907\u6709\u8eab\u4efd\u8bc1\u660e\u3002\u638c\u63e1\u4e00\u4e9b\u57fa\u7840\u65e5\u8bed\u4f1a\u5f88\u6709\u5e2e\u52a9\uff0c\u4f7f\u7528\u7ffb\u8bd1\u8f6f\u4ef6\u662f\u53ef\u884c\u7684\u3002\u65e5\u672c\u666e\u904d\u4f7f\u7528\u73b0\u91d1\uff0c\u53ef\u901a\u8fc7ATM\u5151\u6362\u65e5\u5143\uff0c\u4ea4\u901aIC\u5361\u5728\u516c\u5171\u4ea4\u901a\u548c\u652f\u4ed8\u4e2d\u90fd\u975e\u5e38\u4fbf\u5229\u3002\u4f4f\u5bbf\u591a\u9009\u4ea4\u901a\u4fbf\u6377\u7684\u9152\u5e97\uff0c\u901a\u8fc7Booking\u9884\u8ba2\u3002\u6e38\u89c8\u4e86\u5927\u962a\u3001\u5948\u826f\u3001\u4eac\u90fd\u4e0e\u4e1c\u4eac\u7b49\u5730\uff0c\u4f53\u9a8c\u4e86\u5f53\u5730\u7684\u7f8e\u98df\u4e0e\u6587\u5316\u3002\u5bf9\u65e5\u672c\u7684\u5370\u8c61\u5305\u62ec\u5176\u57ce\u5e02\u5c0f\u3001\u4eba\u53e3\u5bc6\u5ea6\u9ad8\u4f46\u4e0d\u62e5\u6324\u3001\u5ba2\u6c14\u7684\u670d\u52a1\u6587\u5316\u4ee5\u53ca\u72ec\u7279\u7684\u7535\u5b50\u652f\u4ed8\u548c\u4e66\u5e97\u6587\u5316\u3002\u7a0d\u4e0d\u4fbf\u7684\u662f\u65e5\u672c\u7f51\u5496\u9700\u65e5\u672c\u624b\u673a\u53f7\u9a8c\u8bc1\u7801\u3002\u65c5\u884c\u8be6\u7ec6\u8bb0\u5f55\u4e86\u6bcf\u65e5\u884c\u7a0b\u548c\u89c1\u95fb\uff0c\u5305\u62ec\u73af\u7403\u5f71\u57ce\u3001\u5948\u826f\u516c\u56ed\u3001\u4eac\u90fd\u4f0f\u89c1\u7a3b\u8377\u5927\u793e\u3001\u6e05\u6c34\u5bfa\u4ee5\u53ca\u4e1c\u4eac\u7684\u4e1c\u5927\u548c\u79cb\u53f6\u539f\u7b49\u3002\u603b\u4f53\u611f\u53d7\u662f\u6b64\u6b21\u65c5\u884c\u975e\u5e38\u6109\u5feb\uff0c\u671f\u5f85\u672a\u6765\u518d\u8bbf\u65e5\u672c\u3002"}, "\u4e94\u4e00\u66b4\u8d70\u5e7f\u4e1c": {"content_md5": "84aede98ca446560c9cc99d565996026", "ai_summary": "\u4e94\u4e00\u671f\u95f4\uff0c\u6211\u5728\u5e7f\u4e1c\u548c\u9999\u6e2f\u8fdb\u884c\u4e86\u4e00\u6b21\u201c\u66b4\u8d70\u201d\u65c5\u884c\uff0c\u65e5\u5747\u6b65\u884c2.5\u4e07\u6b65\u3002\u5e7f\u4e1c\u7684\u5929\u65f6\u5730\u5229\u4eba\u548c\u4e3a\u8fd9\u6b21\u65c5\u884c\u589e\u8272\u4e0d\u5c11\u3002\u51fa\u53d1\u524d\uff0c\u6211\u642d\u4e58\u4e8616\u5c0f\u65f6\u7684\u7eff\u76ae\u706b\u8f66\uff0c\u4ece\u4e0a\u6d77\u62b5\u8fbe\u5e7f\u5dde\u3002\u65c5\u9014\u4e2d\u4f53\u9a8c\u4e86\u5e7f\u4e1c\u7684\u7f8e\u98df\u548c\u98ce\u666f\uff0c\u5e7f\u5dde\u7684\u5927\u5b66\u57ce\u548c\u73e0\u6c5f\u4e24\u5cb8\uff0c\u90fd\u5e26\u7ed9\u6211\u6df1\u523b\u5370\u8c61\u3002\u5728\u9999\u6e2f\u6e38\u89c8\u4e86\u5c16\u6c99\u5480\u548c\u6e2f\u5927\uff0c\u4f46\u5730\u94c1\u7968\u4ef7\u6602\u8d35\u3002\u6df1\u5733\u5219\u662f\u6b64\u884c\u7684\u91cd\u70b9\uff0c\u57ce\u5e02\u5e74\u8f7b\u4e14\u5145\u6ee1\u6d3b\u529b\uff0c\u6df1\u5733\u6e7e\u548c\u534e\u5f3a\u5317\u7684\u98ce\u666f\u4e0e\u751f\u6d3b\u4e5f\u8ba9\u6211\u611f\u5230\u9707\u64bc\u3002\u6574\u4f53\u800c\u8a00\uff0c\u6b64\u884c\u4e0d\u4ec5\u98ce\u5149\u65e0\u9650\uff0c\u66f4\u662f\u4e00\u6b21\u7f8e\u5473\u76db\u5bb4\uff0c\u6df1\u5733\u7684\u7f8e\u98df\u5c24\u5176\u4e30\u5bcc\u3002\u6700\u540e\uff0c\u4ee5\u8fd4\u6caa\u540e\u7684\u54d4\u54e9\u54d4\u54e9\u4f01\u4e1a\u53c2\u8bbf\u4e3a\u6b64\u6b21\u65c5\u884c\u753b\u4e0a\u4e86\u53e5\u53f7\u3002"}, "\u51ac\u304c\u4e00\u756a\u5acc\u3044": {"content_md5": "fdb276d87d161c28fd3c2ae8aa2e403f", "ai_summary": "\u6587\u7ae0\u8ba8\u8bba\u4e86\u4f5c\u8005\u5bf9\u51ac\u5929\u7684\u538c\u6076\u4e4b\u60c5\uff0c\u7279\u522b\u662f\u6c5f\u6d59\u6caa\u5730\u533a\u7684\u51ac\u5929\u3002\u5bf9\u6bd4\u4e86\u8001\u820d\u63cf\u8ff0\u7684\u6d4e\u5357\u6e29\u6696\u7684\u51ac\u5929\uff0c\u6c5f\u6d59\u6caa\u5bd2\u51b7\u523a\u9aa8\u3001\u53c8\u65e0\u4f9b\u6696\u7684\u73af\u5883\u8ba9\u4eba\u96be\u4ee5\u5fcd\u53d7\u3002\u4f5c\u8005\u56de\u5fc6\u4e86\u4e24\u6b21\u51ac\u5929\u91cc\u7684\u5206\u624b\u7ecf\u5386\uff0c\u5e76\u63d0\u5230\u670b\u53cb\u4eec\u4e5f\u5728\u51ac\u5929\u906d\u9047\u60c5\u611f\u632b\u6298\u3002\u51ac\u5929\u8fd0\u52a8\u56f0\u96be\uff0c\u5438\u5165\u7684\u5bd2\u98ce\u72b9\u5982\u97ad\u6253\uff0c\u96ea\u548c\u51b0\u4e5f\u4e0d\u9002\u5408\u5a31\u4e50\u3002\u751a\u81f3\u8282\u65e5\u7684\u4e50\u8da3\u4e5f\u56e0\u4e3a\u6210\u5e74\u540e\u7684\u8d23\u4efb\u548c\u4e49\u52a1\u800c\u51cf\u5c11\u3002\u98df\u7269\u65b9\u9762\uff0c\u51ac\u5929\u6ca1\u6709\u4ec0\u4e48\u7279\u522b\u7684\u7f8e\u5473\uff0c\u4e1c\u5317\u548c\u5ddd\u6e1d\u7684\u51ac\u5b63\u7f8e\u98df\u8bf1\u4eba\u3002\u4f5c\u8005\u62b1\u6028\u51ac\u5929\u7a7f\u8863\u9ebb\u70e6\uff0c\u8863\u7269\u7b28\u91cd\uff0c\u6d17\u6d74\u548c\u6d17\u8863\u4e0d\u4fbf\u3002\u603b\u4e4b\uff0c\u4f5c\u8005\u8feb\u4e0d\u53ca\u5f85\u5730\u5e0c\u671b\u51ac\u5929\u5feb\u8fc7\u53bb\uff0c\u8fce\u6765\u6625\u5929\u7684\u6696\u9633\u3002"}, "mkdocs\u63d2\u4ef6\u5f00\u53d1": {"content_md5": "c21745f59af6dae5a8740e46a4c0aa64", "ai_summary": "\u535a\u6587\u4ecb\u7ecd\u4e86\u4e00\u4e2a\u4f5c\u8005\u5f00\u53d1\u7684mkdocs\u63d2\u4ef6 [mkdocs-ai-summary]\uff0c\u7528\u6765\u751f\u6210AI\u6458\u8981\u3002\u4f5c\u8005\u53d1\u73b0\u5f88\u591a\u535a\u5ba2\u7cfb\u7edf\u5df2\u6709AI\u6458\u8981\u529f\u80fd\uff0c\u4f46mkdocs\u8fd8\u6ca1\u6709\uff0c\u6240\u4ee5\u81ea\u5df1\u5f00\u53d1\u4e86\u8fd9\u4e2a\u63d2\u4ef6\u3002\u63d2\u4ef6\u73b0\u652f\u6301\u963f\u91cc\u7684\u901a\u4e49\u5343\u95ee\u548cChatGPT\uff0c\u5c06\u6765\u4f1a\u589e\u52a0\u5bf9\u5176\u4ed6AI\u6a21\u578b\u7684\u652f\u6301\u3002\u4ee3\u7801\u6570\u91cf\u8f83\u5c11\uff0c\u4f5c\u8005\u8c26\u865a\u627f\u8ba4\u6c34\u5e73\u6709\u9650\uff0c\u5e0c\u671b\u5927\u5bb6\u5305\u6db5\uff0c\u5e76\u6b22\u8fce\u793e\u533a\u8d21\u732e\uff0c\u589e\u52a0\u66f4\u591a\u6a21\u578b\u7684API\u652f\u6301\u3002"}, "\u5185\u7f6e\u7c7b": {"content_md5": "14d67f3833ee46e01143fa8c28f176c4", "ai_summary": "\u8fd9\u7bc7\u6559\u7a0b\u8be6\u7ec6\u8bb2\u89e3\u4e86Python\u4e2d\u7684\u5185\u7f6e\u7c7b\u548c\u51fd\u6570\uff0c\u65e8\u5728\u5e2e\u52a9\u8bfb\u8005\u638c\u63e1\u5982\u4f55\u5b66\u4e60Python\u3002\u6587\u7ae0\u5f3a\u8c03\u4f7f\u7528`dir`\u548c`help`\u51fd\u6570\u8fdb\u884c\u81ea\u5b66\uff1a`help`\u51fd\u6570\u53ef\u63d0\u4f9b\u6a21\u5757\u3001\u5173\u952e\u8bcd\u548c\u4e3b\u9898\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u800c`dir`\u51fd\u6570\u7528\u4e8e\u67e5\u770b\u5f53\u524d\u547d\u540d\u7a7a\u95f4\u5185\u7684\u53d8\u91cf\u6216\u67d0\u4e2a\u5bf9\u8c61\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\u3002\u6b64\u5916\uff0c\u6587\u7ae0\u4ece\u7c7b\u7684\u89c6\u89d2\u89e3\u91ca\u4e86Python\u7684\u6982\u5ff5\uff0c\u5305\u62ec\u5185\u7f6e\u7c7b\u3001\u65b9\u6cd5\u3001\u5bf9\u8c61\u3001\u53d8\u91cf\u548c\u5173\u952e\u5b57\uff0c\u63d0\u4f9b\u4e86Python\u5185\u5efa\u6570\u636e\u7c7b\u578b\u5982\u5b57\u7b26\u4e32\u3001\u5217\u8868\u53ca\u5176\u64cd\u4f5c\u548c\u63a8\u5bfc\u5f0f\u7684\u65b9\u6cd5\uff0c\u8bb2\u89e3\u4e86\u5f02\u5e38\u5904\u7406\u3001\u6a21\u5757\u548c\u5305\u7684\u4f7f\u7528\u3002\u901a\u8fc7\u793a\u4f8b\u4ee3\u7801\uff0c\u6587\u7ae0\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528`print`\u3001`len`\u3001`type`\u7b49\u51fd\u6570\uff0c\u5e76\u4e14\u5efa\u8bae\u8bfb\u8005\u5229\u7528`help`\u548c`dir`\u51fd\u6570\u63a2\u7d22\u66f4\u591a\u7684\u5185\u7f6e\u529f\u80fd\u3002\u603b\u7ed3\u800c\u8a00\uff0c\u6559\u7a0b\u6ce8\u91cd\u4e8e\u57fa\u7840\u6982\u5ff5\u548c\u5b66\u4e60\u65b9\u6cd5\uff0c\u5f3a\u8c03\u4e86Python\u4e2d\u4e07\u7269\u7686\u5bf9\u8c61\u7684\u7406\u5ff5\uff0c\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u6982\u5ff5\uff0c\u80fd\u591f\u66f4\u6df1\u5165\u7406\u89e3\u5e76\u8fd0\u7528Python\u3002"}, "\u5185\u7f6e\u5173\u952e\u5b57": {"content_md5": "538b7f572314ad5f9faea3aabe7c4f02", "ai_summary": "\u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\u4e86Python\u4e2d\u51e0\u4e2a\u5173\u952e\u90e8\u5206\uff0c\u5305\u62ec\u7f29\u8fdb\u3001\u81ea\u5b9a\u4e49\u51fd\u6570\u3001\u7c7b\u4e0e\u5bf9\u8c61\u3001\u6761\u4ef6\u8bed\u53e5\u3001\u5faa\u73af\u3001\u5f02\u5e38\u5904\u7406\u7b49\u3002\n\n### \u7f29\u8fdb\n\u7f29\u8fdb\u5728Python\u4e2d\u6709\u8bed\u6cd5\u610f\u4e49\uff0c\u6807\u8bc6\u4ee3\u7801\u5c42\u7ea7\uff0c\u63a8\u8350\u4f7f\u75284\u4e2a\u7a7a\u683c\u3002\n\n### \u81ea\u5b9a\u4e49\u51fd\u6570\n\u4f7f\u7528`def`\u5b9a\u4e49\u51fd\u6570\uff0c\u5305\u62ec\u53c2\u6570\u548c\u8fd4\u56de\u503c\uff1b\u533f\u540d\u51fd\u6570\u4f7f\u7528`lambda`\u5b9a\u4e49\uff0c\u5e38\u7528\u4e8e\u7b80\u5355\u64cd\u4f5c\u3002\n\n### \u7c7b\u4e0e\u5bf9\u8c61\n\u5b9a\u4e49\u7c7b\u4f7f\u7528`class`\uff0c\u5b9e\u4f8b\u5316\u5bf9\u8c61\u4f7f\u7528\u533a\u57df\u540d\u79f0\uff08self\u548ccls\uff09\uff1b\u7ee7\u627f\u901a\u8fc7\u5728\u7c7b\u540d\u540e\u52a0\u7236\u7c7b\u5b9e\u73b0\u3002\u4f8b\uff1a`class Teacher(Person)`\u3002\n\n### \u6761\u4ef6\u8bed\u53e5\n`if`\u3001`elif`\u3001`else`\u7528\u4e8e\u63a7\u5236\u903b\u8f91\u6d41\uff0c\u6761\u4ef6\u5224\u65ad\u57fa\u4e8e\u5e03\u5c14\u8868\u8fbe\u5f0f\uff0c\u652f\u6301\u7d27\u51d1\u578b\u8bed\u6cd5\u3002\n\n### \u5faa\u73af\n`for`\u548c`while`\u5faa\u73af\u7528\u4e8e\u904d\u5386\u548c\u6761\u4ef6\u63a7\u5236\uff0c`continue`\u8df3\u5230\u4e0b\u6b21\u5faa\u73af\uff0c`break`\u7ec8\u6b62\u5faa\u73af\uff0c`pass`\u5360\u4f4d\uff1b\u5faa\u73af\u652f\u6301`else`\u5b50\u53e5\u3002\n\n### \u5f02\u5e38\u5904\u7406\n`try`\u3001`except`\u3001`else`\u3001`finally`\u7528\u4e8e\u6355\u83b7\u548c\u5904\u7406\u5f02\u5e38\uff0c\u81ea\u5b9a\u4e49\u5f02\u5e38\u901a\u8fc7\u7ee7\u627f`BaseException`\u5b9e\u73b0\uff0c`assert`\u7528\u4e8e\u6761\u4ef6\u65ad\u8a00\u3002\n\n\u8fd9\u4e9b\u57fa\u7840\u8bed\u6cd5\u662fPython\u7f16\u7a0b\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u7406\u89e3\u548c\u638c\u63e1\u5b83\u4eec\u5bf9\u4e8e\u8fdb\u884cPython\u7f16\u7a0b\u81f3\u5173\u91cd\u8981\u3002"}, "\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b": {"content_md5": "01cb620afb279ba70ee8608e23a93745", "ai_summary": "\u672c\u6587\u4ecb\u7ecd\u4e86Python\u4e2d\u7684\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\uff08OOP\uff09\uff0c\u5f3a\u8c03\u4e86\u5728Python\u4e2d\u53ef\u4ee5\u63a7\u5236\u5bf9\u8c61\u7684\u5404\u79cd\u884c\u4e3a\uff0c\u4f8b\u5982\u8fed\u4ee3\u3001\u6253\u5370\u3001\u4e0a\u4e0b\u6587\u7ba1\u7406\u4ee5\u53ca\u5404\u79cd\u8fd0\u7b97\u7b26\u7684\u91cd\u8f7d\u3002\u901a\u8fc7\u5143\u7c7b\uff0c\u5f00\u53d1\u8005\u751a\u81f3\u53ef\u4ee5\u63a7\u5236\u7c7b\u5b9a\u4e49\u7684\u8fc7\u7a0b\u3002\u6587\u4e2d\u4e3e\u4f8b\u8bf4\u660e\u4e86\u5728\u5404\u7c7b\u5e93\u4e2d\u5982\u4f55\u89c1\u8bc6\u5230\u591a\u79cd\u8bed\u6cd5\u884c\u4e3a\uff0c\u4f8b\u5982datetime\u3001pathlib\u3001NumPy\u3001pandas\u3001Flask\u548cplotnine\u3002\u63a5\u4e0b\u6765\uff0c\u6587\u7ae0\u8be6\u7ec6\u8bb2\u89e3\u4e86\u7c7b\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u5305\u62ec\u7c7b\u5c5e\u6027\u548c\u5b9e\u4f8b\u5c5e\u6027\u3001\u65b9\u6cd5\u3001\u591a\u6001\u548c\u9b54\u6cd5\u65b9\u6cd5\u3002\u9b54\u6cd5\u65b9\u6cd5\u662f\u4e00\u7cfb\u5217\u7531\u524d\u540e\u53cc\u4e0b\u5212\u7ebf\u547d\u540d\u7684\u65b9\u6cd5\uff0c\u7528\u4e8e\u5b9a\u4e49\u7c7b\u7684\u4e00\u4e9b\u91cd\u8981\u884c\u4e3a\uff0c\u4f8b\u5982\u8fd0\u7b97\u7b26\u91cd\u8f7d\u3002\u6b64\u5916\uff0c\u6587\u7ae0\u8fd8\u6d89\u53ca\u8fed\u4ee3\u5668\u3001\u63cf\u8ff0\u5668\u3001\u5bb9\u5668\u3001\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668\u548c\u53ef\u8c03\u7528\u5bf9\u8c61\u7b49\u5185\u5bb9\uff0c\u5e76\u4ecb\u7ecd\u4e86\u5f02\u6b65\u7f16\u7a0b\u548c\u6cdb\u578b\u7684\u57fa\u7840\u3002\u6700\u540e\uff0c\u8ba8\u8bba\u4e86\u901a\u8fc7\u5143\u7c7b\u63a7\u5236\u7c7b\u7684\u521b\u5efa\u8fc7\u7a0b\u3002\u5bf9\u4e8e\u7f16\u7a0b\u5b66\u4e60\u7684\u5efa\u8bae\uff0c\u4f5c\u8005\u5f3a\u8c03\u5b9e\u9645\u5e94\u7528\u548c\u4e0d\u65ad\u5b9e\u8df5\u7684\u91cd\u8981\u6027\u3002"}, "\u51fd\u6570\u5f0f\u7f16\u7a0b": {"content_md5": "e3aeb69f4fcd5e6c50e24c4a33a5e853", "ai_summary": "\u51fd\u6570\u5f0f\u7f16\u7a0b\u662f\u4e00\u7c7b\u7f16\u7a0b\u8303\u578b\uff0c\u4e0e\u5176\u5bf9\u7acb\u7684\u662f\u8fc7\u7a0b\u5f0f\u3001\u58f0\u660e\u5f0f\u53ca\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u3002\u8fc7\u7a0b\u5f0f\u7f16\u7a0b\u7528\u4e00\u7cfb\u5217\u6307\u4ee4\u63cf\u8ff0\u7a0b\u5e8f\u6d41\u7a0b\uff1b\u58f0\u660e\u5f0f\u7f16\u7a0b\u63cf\u8ff0\u95ee\u9898\u53ca\u5176\u89e3\u51b3\u65b9\u6cd5\uff1b\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u64cd\u4f5c\u5bf9\u8c61\u53ca\u5176\u5185\u90e8\u72b6\u6001\uff1b\u800c\u51fd\u6570\u5f0f\u7f16\u7a0b\u5219\u5c06\u95ee\u9898\u5206\u89e3\u4e3a\u51fd\u6570\u5e8f\u5217\uff0c\u51fd\u6570\u7684\u8f93\u51fa\u4ec5\u4f9d\u8d56\u8f93\u5165\uff0c\u5177\u6709\u65e0\u72b6\u6001\u7279\u6027\u3002Python\u652f\u6301\u591a\u7f16\u7a0b\u8303\u578b\uff0c\u51fd\u6570\u5f0f\u7f16\u7a0b\u5c24\u4e3a\u91cd\u8981\u3002\u51fd\u6570\u5b9a\u4e49\u65f6\u9700\u58f0\u660e\u5f62\u53c2\uff0c\u8c03\u7528\u65f6\u9700\u4f20\u9012\u5b9e\u53c2\u3002\u5f62\u53c2\u4e0e\u5b9e\u53c2\u53ef\u4ee5\u5206\u522b\u6253\u5305\u548c\u89e3\u5305\u3002\u51fd\u6570\u8fd4\u56de\u503c\u7531`return`\u58f0\u660e\uff0c\u652f\u6301\u9012\u5f52\u8c03\u7528\u3002\u8fed\u4ee3\u5668\u901a\u8fc7`__next__`\u65b9\u6cd5\u8bbf\u95ee\u6570\u636e\u6d41\u4e2d\u7684\u4e0b\u4e00\u4e2a\u5143\u7d20\uff0c\u751f\u6210\u5668\u4f5c\u4e3a\u7279\u6b8a\u8fed\u4ee3\u5668\u542b\u6709`yield`\u5173\u952e\u5b57\uff0c\u53ef\u968f\u7528\u968f\u7b97\uff0c\u8282\u7701\u8d44\u6e90\uff0c\u5e76\u652f\u6301\u534f\u7a0b\u3002\u88c5\u9970\u5668\u662f\u9ad8\u7ea7\u51fd\u6570\uff0c\u7528\u4e8e\u6269\u5c55\u539f\u6709\u51fd\u6570\u7684\u529f\u80fd\u800c\u65e0\u9700\u6539\u53d8\u5176\u5185\u90e8\u4ee3\u7801\uff0c\u5e38\u7528\u4e8e\u65e5\u5fd7\u8bb0\u5f55\u3001\u9a8c\u8bc1\u767b\u5f55\u72b6\u6001\u3001\u5904\u7406\u8f93\u5165\u53c2\u6570\u53ca\u5f02\u5e38\u7b49\u3002Python\u5185\u7f6e\u591a\u4e2a\u88c5\u9970\u5668\uff0c\u5982`functools.wraps`\u4fdd\u7559\u539f\u51fd\u6570\u540d\u548c\u6587\u6863\uff0c`functools.cache`\u7528\u4e8e\u8c03\u7528\u7f13\u5b58\u3002"}, "re": {"content_md5": "eded0f54965dbd422a06ef23b4b86755", "ai_summary": "`re`\u5e93\u662fPython\u6700\u5e38\u7528\u7684\u6807\u51c6\u5e93\u4e4b\u4e00\uff0c\u63d0\u4f9b\u4e86\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\uff08Regex\uff09\u5f15\u64ce\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u7528\u7b80\u5355\u5b57\u7b26\u4e32\u63cf\u8ff0\u6216\u5339\u914d\u6587\u672c\u4e2d\u6307\u5b9a\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\uff0c\u73b0\u5e7f\u6cdb\u7528\u4e8e\u5404\u79cd\u7f16\u7a0b\u8bed\u8a00\u548c\u6587\u672c\u7f16\u8f91\u5668\u4e2d\uff08\u4f46C\u548cC++\u6807\u51c6\u5e93\u4e0d\u652f\u6301\uff09\u3002\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f`r'(\\d+\\.?\\d*)([\u4e07\u5343\u767e]?)-(\\d+\\.?\\d*)([\u4e07\u5343\u767e]?)\u00b7?(\\d*)\u85aa?'`\u53ef\u4ee5\u5c06\u6708\u85aa\u683c\u5f0f\u5316\u3002\u8fd9\u8868\u8fbe\u4e86\u6b63\u5219\u7684\u57fa\u672c\u89c4\u5219\uff1a`\\d`\u4ee3\u8868\u6570\u5b57\uff0c`+`\u8868\u793a\u81f3\u5c11\u4e00\u4e2a\uff0c`?`\u8868\u793a0\u62161\uff0c`*`\u8868\u793a\u4efb\u610f\u6570\u91cf\uff0c`[]`\u4ee3\u8868\u5b57\u7b26\u96c6\uff0c`()`\u8868\u793a\u63d0\u53d6\u5185\u5bb9\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u8fd8\u5305\u62ec\u9ad8\u9636\u89c4\u5219\u5982\u8f6c\u4e49\u5b57\u7b26\u3001\u5339\u914d\u6a21\u5f0f\uff08\u5982ASCII\u3001IGNORECASE\uff09\u548c\u65ad\u8a00\u3002`re`\u5e93\u7684\u4e3b\u8981API\u5305\u62ec`match`\u3001`search`\u3001`sub`\u3001`split`\u3001`findall`\u7b49\uff0c\u4fbf\u4e8e\u6b63\u5219\u5339\u914d\u64cd\u4f5c\uff0c\u540c\u65f6`Pattern`\u548c`Match`\u5bf9\u8c61\u7528\u4e8e\u5b58\u50a8\u548c\u5904\u7406\u5339\u914d\u7ed3\u679c\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u80fd\u6709\u6548\u5904\u7406\u548c\u68c0\u7d22\u6587\u672c\u5185\u5bb9\u3002"}, "time": {"content_md5": "bb4f89beb98a03562485c94a4ea65406", "ai_summary": "Python \u4e2d\u5e38\u7528\u7684\u65f6\u95f4\u76f8\u5173\u6807\u51c6\u5e93\u6709\u4e09\u4e2a\uff1a`time` \u63d0\u4f9b\u4f4e\u5c42\u63a5\u53e3\uff0c`datetime` \u63d0\u4f9b\u66f4\u6613\u7528\u7684\u63a5\u53e3\uff0c`calendar` \u7528\u4e8e\u8f93\u51fa\u65e5\u5386\u3002`time` \u6a21\u5757\u89e3\u91ca\u4e86\u65f6\u95f4\u7684\u5b9a\u4e49\u53ca\u53d1\u5c55\uff0c\u65f6\u95f4\u6233\u7684\u8d77\u6e90\u662f\u4ece1972\u5e741\u67081\u65e5\u7684UTC\u65f6\u95f4\u6807\u51c6\u5f00\u59cb\u8ba1\u7b97\u7684\u79d2\u6570\u3002\u65f6\u95f4\u5728Python\u4e2d\u53ef\u4ee5\u8868\u793a\u4e3a\u65f6\u95f4\u6233\u3001\u5b57\u7b26\u4e32\u6216\u7ed3\u6784\u5316\u6570\u636e\uff08\u5143\u7ec4\uff09\u3002\u5404\u7c7b\u578b\u95f4\u7684\u8f6c\u6362\u4e3b\u8981\u901a\u8fc7`time.struct_time`\u4f5c\u4e3a\u4e2d\u4ecb\u8fdb\u884c\u3002`time` \u6a21\u5757\u8fd8\u80fd\u8fdb\u884c\u7a0b\u5e8f\u7684\u5ef6\u8fdf\u6267\u884c\u3002\n\n`datetime` \u6a21\u5757\u5173\u6ce8\u65e5\u671f\u548c\u65f6\u95f4\u7684\u6709\u6548\u89e3\u6790\u548c\u64cd\u4f5c\uff0c\u7c7b\u5305\u62ec`date`\u3001`time`\u3001`datetime`\u3001`timedelta`\u7b49\u3002`date` \u7c7b\u53ef\u521b\u5efa\u7279\u5b9a\u65e5\u671f\u5bf9\u8c61\u5e76\u63d0\u4f9b\u591a\u79cd\u5b9e\u4f8b\u65b9\u6cd5\uff0c\u5982\u683c\u5f0f\u5316\u8f93\u51fa\u3001\u8ba1\u7b97\u661f\u671f\u7b49\u3002`time` \u7c7b\u7528\u4e8e\u8868\u793a\u975e\u7279\u5b9a\u65e5\u671f\u7684\u65f6\u95f4\u3002`timedelta` \u7c7b\u8868\u793a\u65f6\u95f4\u8de8\u5ea6\uff0c\u53ef\u7528\u4e8e\u65f6\u95f4\u52a0\u51cf\u8ba1\u7b97\u3002`datetime` \u7c7b\u7ed3\u5408\u4e86\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u529f\u80fd\u66f4\u4e3a\u5168\u9762\u3002\n\n`calendar` \u6a21\u5757\u7eafPython\u5b9e\u73b0\uff0c\u7528\u4e8e\u67e5\u9605\u65e5\u5386\uff0c\u63d0\u4f9b\u4e30\u5bcc\u7684\u64cd\u4f5c\u65e5\u5386\u7684\u529f\u80fd\u3002"}, "Navigation\ud83e\udded": {"content_md5": "c5d0197186714bc5b4ed5201ce84df88", "ai_summary": "\u672c\u5bfc\u822a\u5305\u542b\u591a\u79cd\u5185\u5bb9\u4e3b\u9898\uff1a**About**\u63d0\u4f9b\u7f51\u7ad9\u6982\u89c8\uff0c**Note**\u5305\u542b\u8ba1\u7b97\u673a\u79d1\u5b66\u76f8\u5173\u7b14\u8bb0\u548c\u6559\u7a0b\uff0c**Blog**\u4e3a\u4e2a\u4eba\u535a\u5ba2\uff0c**Python**\u63d0\u4f9bPython\u8bed\u6cd5\u548c\u5e93\u6559\u7a0b\uff0c**Project**\u4ecb\u7ecd\u5f00\u6e90\u9879\u76ee\uff0c**Statistics**\u4e3a\u7edf\u8ba1\u5b66\u6307\u5357\uff0c**SomeMath**\u6d89\u53ca\u6570\u5b66\u5185\u5bb9\uff0c**PlayGround**\u4e3aMarkdown\u8bed\u6cd5\u6f14\u793a\uff0c**Tags**\u5c55\u793a\u5206\u7c7b\u89c6\u56fe\u3002\u63d2\u4ef6\u90e8\u5206\u4ecb\u7ecd\u4e86\u529f\u80fd\u7279\u6027\uff1a**AI Summary**\u901a\u8fc7mkdocs-ai-summary\u5b9e\u73b0\uff0c\u652f\u6301\u4e24\u4e2a\u6a21\u578b\u2014\u2014tongyi qianwen\u548cChatGPT\uff1b**\u641c\u7d22**\u7531lunrjs\u652f\u6301\uff0c\u53ef\u641c\u7d22\u6807\u9898\u3001\u5185\u5bb9\u548c\u4ee3\u7801\uff1b**\u53cd\u9988**\u901a\u8fc7Google Analytics\u8fdb\u884c\uff0c\u9700\u8981Cookie\u540c\u610f\uff0c\u53ef\u4ee5\u70b9\u8d5e\u6216\u4e3e\u62a5\u95ee\u9898\uff1b**\u8bc4\u8bba**\u901a\u8fc7giscus\u5b58\u50a8\u5728GitHub\u7684Discussions\u4e2d\uff1b**RSS**\u63d2\u4ef6\u53ef\u8ba2\u9605\u6700\u65b0\u6d88\u606f\uff1b**\u4e3b\u9898\u989c\u8272**\u6bcf\u65e5\u53d8\u6362\uff1b**i18n**\u63d2\u4ef6\u63d0\u4f9b\u56fd\u9645\u5316\u652f\u6301\uff0c\u9ed8\u8ba4\u8bed\u8a00\u4e3a\u4e2d\u6587\u3002"}} \ No newline at end of file diff --git a/docs/About/index.en.md b/docs/About/index.en.md index c314e4d94..f83ae0c3d 100644 --- a/docs/About/index.en.md +++ b/docs/About/index.en.md @@ -3,6 +3,8 @@ tags: - About hide: - tags +include: +- ai-summary --- # Navigation🧭 @@ -23,6 +25,21 @@ hide: - [**Tags**](../Tags/): 👇 ## Plugins + +### AI Summary + +Powered by [mkdocs-ai-summary](https://github.com/AIboy996/mkdocs-ai-summary). + +Support two model: + +!!! tongyiai-summary "tongyi qianwen" + From aliyun.com + +And + +!!! chatgpt-summary "ChatGPT" + From openai.com + ### Tags I always add tags for each page(but sometimes I hide them for simplification), check [**Tags**](../Tags) to get a Category View. diff --git a/docs/About/index.md b/docs/About/index.md index 1bdd15b3f..b71e8dc54 100644 --- a/docs/About/index.md +++ b/docs/About/index.md @@ -3,6 +3,8 @@ tags: - About hide: - tags +include: +- ai-summary --- # 站内导航🧭 @@ -23,6 +25,21 @@ hide: - [**Tags**](../Tags/):👇 ## 本站的一些功能 + +### AI摘要 + +使用[mkdocs-ai-summary](https://github.com/AIboy996/mkdocs-ai-summary)插件实现的AI摘要功能。会在某些文章最开头添加一个AI生成的摘要。 + +暂时有两种AI模型可用: + +!!! tongyiai-summary "通义千问" + 阿里的模型 + +和 + +!!! chatgpt-summary "ChatGPT" + openai的模型 + ### 分类标签 本站所有的文章都会加上一个简明的分类标签,你可以在[**Tags**](../Tags)板块按照分类标签查看文章。 diff --git a/plugins_full.yml b/plugins_full.yml index 7505f4321..549ebe71f 100644 --- a/plugins_full.yml +++ b/plugins_full.yml @@ -1,11 +1,11 @@ plugins: - ai-summary: api: "chatgpt" - model: "gpt-4-turbo" + model: "gpt-4o" ignore_code: true cache: true cache_dir: "./" - prompt: "请帮我把下面的内容总结为200字以内的摘要:" + prompt: "请帮我把下面的内容总结为200字以内的摘要,请不要出现连续换行:" - i18n: docs_structure: suffix languages: diff --git a/requirements.txt b/requirements.txt index afebf0392..e2782237b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,5 +7,5 @@ mkdocs-minify-plugin==0.6.2 mkdocs-rss-plugin==1.7.0 mkdocs-static-i18n==1.2.3 mkdocs-video==1.5.0 -mkdocs-ai-summary[chatgpt]==0.2.1 +mkdocs-ai-summary[chatgpt]==0.2.2 # mkdocs-jupyter==0.22.0 \ No newline at end of file