{"id":962260,"date":"2024-12-27T04:06:35","date_gmt":"2024-12-26T20:06:35","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/962260.html"},"modified":"2024-12-27T04:06:37","modified_gmt":"2024-12-26T20:06:37","slug":"lambda%e5%87%bd%e6%95%b0python%e5%a6%82%e4%bd%95%e8%b0%83%e7%94%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/962260.html","title":{"rendered":"lambda\u51fd\u6570python\u5982\u4f55\u8c03\u7528"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25104257\/565cb704-beba-48ac-8cf9-f81179ea26c2.webp\" alt=\"lambda\u51fd\u6570python\u5982\u4f55\u8c03\u7528\" \/><\/p>\n<p><p> <strong>Lambda\u51fd\u6570\u5728Python\u4e2d\u8c03\u7528\u7684\u65b9\u6cd5\u6709\uff1a\u76f4\u63a5\u8c03\u7528\u3001\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u3001\u7ed3\u5408\u5185\u7f6e\u51fd\u6570\u3001\u4f5c\u4e3a\u533f\u540d\u51fd\u6570\u4f7f\u7528\u3002<\/strong> \u5176\u4e2d\uff0c\u76f4\u63a5\u8c03\u7528\u662f\u6700\u57fa\u7840\u7684\u65b9\u6cd5\u3002Lambda\u51fd\u6570\u662f\u5728Python\u4e2d\u521b\u5efa\u533f\u540d\u51fd\u6570\u7684\u4e00\u79cd\u65b9\u5f0f\u3002\u533f\u540d\u51fd\u6570\u662f\u6307\u6ca1\u6709\u540d\u79f0\u7684\u51fd\u6570\uff0clambda\u51fd\u6570\u80fd\u591f\u5feb\u901f\u5730\u5728\u9700\u8981\u4f7f\u7528\u7b80\u5355\u529f\u80fd\u7684\u5730\u65b9\u5b9a\u4e49\u4e00\u4e2a\u5c0f\u529f\u80fd\uff0c\u800c\u4e0d\u9700\u8981\u6b63\u5f0f\u5730\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e9b\u8c03\u7528\u65b9\u6cd5\uff0c\u4ee5\u53ca\u5b83\u4eec\u5728\u4e0d\u540c\u60c5\u5883\u4e0b\u7684\u4f7f\u7528\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u76f4\u63a5\u8c03\u7528<\/p>\n<\/p>\n<p><p>\u76f4\u63a5\u8c03\u7528\u662f\u6700\u57fa\u7840\u7684\u8c03\u7528lambda\u51fd\u6570\u7684\u65b9\u6cd5\u3002lambda\u51fd\u6570\u5b9a\u4e49\u540e\uff0c\u53ef\u4ee5\u50cf\u666e\u901a\u51fd\u6570\u4e00\u6837\u7acb\u5373\u8c03\u7528\u3002\u5176\u8bed\u6cd5\u4e3a\uff1a<code>(lambda \u53c2\u6570\u5217\u8868: \u8868\u8fbe\u5f0f)(\u53c2\u6570\u503c)<\/code>\u3002\u8fd9\u79cd\u65b9\u5f0f\u9002\u7528\u4e8e\u7b80\u5355\u7684\u3001\u4e00\u6b21\u6027\u7684\u529f\u80fd\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u8ba1\u7b97\u4e24\u4e2a\u6570\u4e4b\u548c\u7684lambda\u51fd\u6570\u5e76\u76f4\u63a5\u8c03\u7528\u5b83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">result = (lambda x, y: x + y)(3, 4)<\/p>\n<p>print(result)  # \u8f93\u51fa7<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u5f0f\u9002\u7528\u4e8e\u7b80\u5355\u7684\u8ba1\u7b97\uff0c\u907f\u514d\u4e86\u5b9a\u4e49\u4e00\u4e2a\u5b8c\u6574\u51fd\u6570\u7684\u7e41\u7410\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012<\/p>\n<\/p>\n<p><p>Lambda\u51fd\u6570\u53ef\u4ee5\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9\u5176\u4ed6\u51fd\u6570\u3002\u8fd9\u79cd\u65b9\u5f0f\u5e38\u7528\u4e8e\u9700\u8981\u4f20\u9012\u4e00\u4e2a\u7b80\u5355\u529f\u80fd\u7684\u51fd\u6570\u4e2d\uff0c\u6bd4\u5982\u6392\u5e8f\u3001\u8fc7\u6ee4\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528lambda\u51fd\u6570\u4f5c\u4e3a\u6392\u5e8f\u7684key\u53c2\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = [(1, 2), (3, 1), (5, 0)]<\/p>\n<p>sorted_data = sorted(data, key=lambda x: x[1])<\/p>\n<p>print(sorted_data)  # \u8f93\u51fa[(5, 0), (3, 1), (1, 2)]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u91cc\uff0clambda\u51fd\u6570\u6839\u636e\u5143\u7ec4\u7684\u7b2c\u4e8c\u4e2a\u5143\u7d20\u8fdb\u884c\u6392\u5e8f\u3002\u8fd9\u79cd\u7528\u6cd5\u7b80\u5316\u4e86\u4ee3\u7801\uff0c\u5e76\u4f7f\u5f97\u4ee3\u7801\u66f4\u5177\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u7ed3\u5408\u5185\u7f6e\u51fd\u6570<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u8bb8\u591a\u5185\u7f6e\u51fd\u6570\uff0c\u5982<code>map()<\/code>, <code>filter()<\/code>, <code>reduce()<\/code>\u7b49\uff0c\u8fd9\u4e9b\u51fd\u6570\u5e38\u4e0elambda\u51fd\u6570\u7ed3\u5408\u4f7f\u7528\uff0c\u4ee5\u5b9e\u73b0\u66f4\u4e3a\u7b80\u6d01\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528map\u51fd\u6570<\/strong><\/li>\n<\/ol>\n<p><p><code>map()<\/code>\u51fd\u6570\u53ef\u4ee5\u5c06\u4e00\u4e2a\u51fd\u6570\u5e94\u7528\u5230\u4e00\u4e2a\u53ef\u8fed\u4ee3\u5bf9\u8c61\u7684\u6bcf\u4e2a\u5143\u7d20\u4e0a\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u8fed\u4ee3\u5668\u3002\u7ed3\u5408lambda\u51fd\u6570\uff0c\u53ef\u4ee5\u5b9e\u73b0\u7b80\u6d01\u7684\u6620\u5c04\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers = [1, 2, 3, 4]<\/p>\n<p>squared = map(lambda x: x2, numbers)<\/p>\n<p>print(list(squared))  # \u8f93\u51fa[1, 4, 9, 16]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528filter\u51fd\u6570<\/strong><\/li>\n<\/ol>\n<p><p><code>filter()<\/code>\u51fd\u6570\u7528\u4e8e\u8fc7\u6ee4\u5e8f\u5217\uff0c\u8fc7\u6ee4\u6761\u4ef6\u7531lambda\u51fd\u6570\u63d0\u4f9b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers = [1, 2, 3, 4, 5, 6]<\/p>\n<p>evens = filter(lambda x: x % 2 == 0, numbers)<\/p>\n<p>print(list(evens))  # \u8f93\u51fa[2, 4, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4f7f\u7528reduce\u51fd\u6570<\/strong><\/li>\n<\/ol>\n<p><p><code>reduce()<\/code>\u51fd\u6570\u9700\u8981\u4ece<code>functools<\/code>\u6a21\u5757\u4e2d\u5bfc\u5165\uff0c\u5b83\u7528\u4e8e\u5bf9\u5e8f\u5217\u4e2d\u7684\u5143\u7d20\u8fdb\u884c\u7d2f\u79ef\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from functools import reduce<\/p>\n<p>numbers = [1, 2, 3, 4]<\/p>\n<p>product = reduce(lambda x, y: x * y, numbers)<\/p>\n<p>print(product)  # \u8f93\u51fa24<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u4f5c\u4e3a\u533f\u540d\u51fd\u6570\u4f7f\u7528<\/p>\n<\/p>\n<p><p>\u5728\u4e0d\u9700\u8981\u91cd\u590d\u4f7f\u7528\u51fd\u6570\u7684\u573a\u5408\uff0clambda\u51fd\u6570\u53ef\u4ee5\u4f5c\u4e3a\u533f\u540d\u51fd\u6570\u4f7f\u7528\u3002\u5b83\u80fd\u4f7f\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\uff0c\u7279\u522b\u662f\u5728\u56de\u8c03\u51fd\u6570\u6216\u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5728GUI\u7f16\u7a0b\u4e2d\uff0clambda\u51fd\u6570\u5e38\u7528\u4e8e\u8bbe\u7f6e\u7b80\u5355\u7684\u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>root = tk.Tk()<\/p>\n<p>button = tk.Button(root, text=&quot;Click Me&quot;, command=lambda: print(&quot;Button Clicked&quot;))<\/p>\n<p>button.pack()<\/p>\n<p>root.m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0clambda\u51fd\u6570\u7528\u4e8e\u5b9a\u4e49\u70b9\u51fb\u6309\u94ae\u65f6\u7684\u7b80\u5355\u6253\u5370\u884c\u4e3a\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4e0e\u5217\u8868\u89e3\u6790\u7ed3\u5408\u4f7f\u7528<\/p>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u662fPython\u4e2d\u521b\u5efa\u5217\u8868\u7684\u4e00\u79cd\u7b80\u6d01\u65b9\u6cd5\uff0c\u7ed3\u5408lambda\u51fd\u6570\uff0c\u53ef\u4ee5\u5b9e\u73b0\u590d\u6742\u7684\u5217\u8868\u751f\u6210\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u521b\u5efa\u4e00\u4e2a\u5e73\u65b9\u6570\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers = [1, 2, 3, 4]<\/p>\n<p>squared = [(lambda x: x2)(x) for x in numbers]<\/p>\n<p>print(squared)  # \u8f93\u51fa[1, 4, 9, 16]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0clambda\u51fd\u6570\u7528\u4e8e\u5728\u5217\u8868\u89e3\u6790\u4e2d\u5185\u8054\u8ba1\u7b97\u6bcf\u4e2a\u5143\u7d20\u7684\u5e73\u65b9\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u4e0e\u5b57\u5178\u89e3\u6790\u7ed3\u5408\u4f7f\u7528<\/p>\n<\/p>\n<p><p>\u7c7b\u4f3c\u4e8e\u5217\u8868\u89e3\u6790\uff0c\u5b57\u5178\u89e3\u6790\u5141\u8bb8\u6211\u4eec\u5728\u521b\u5efa\u5b57\u5178\u65f6\u4f7f\u7528lambda\u51fd\u6570\u8fdb\u884c\u7b80\u6d01\u7684\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5c06\u4e00\u4e2a\u5217\u8868\u8f6c\u6362\u4e3a\u5b57\u5178\uff0c\u5176\u4e2d\u952e\u662f\u539f\u59cb\u5143\u7d20\uff0c\u503c\u662f\u5176\u5e73\u65b9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers = [1, 2, 3, 4]<\/p>\n<p>squared_dict = {x: (lambda x: x2)(x) for x in numbers}<\/p>\n<p>print(squared_dict)  # \u8f93\u51fa{1: 1, 2: 4, 3: 9, 4: 16}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e03\u3001\u4e0e\u6761\u4ef6\u8868\u8fbe\u5f0f\u7ed3\u5408\u4f7f\u7528<\/p>\n<\/p>\n<p><p>lambda\u51fd\u6570\u53ef\u4ee5\u4e0e\u6761\u4ef6\u8868\u8fbe\u5f0f\u7ed3\u5408\u4f7f\u7528\uff0c\u4ee5\u4fbf\u5728\u5355\u884c\u4e2d\u6267\u884c\u6761\u4ef6\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">max_value = lambda a, b: a if a &gt; b else b<\/p>\n<p>print(max_value(10, 20))  # \u8f93\u51fa20<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5b9a\u4e49\u4e86\u4e00\u4e2alambda\u51fd\u6570\u6765\u8ba1\u7b97\u4e24\u4e2a\u6570\u4e2d\u7684\u8f83\u5927\u503c\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u5e94\u7528\u4e8e\u6570\u636e\u5904\u7406\u5e93<\/p>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5904\u7406\u5e93\u5982Pandas\u4e2d\uff0clambda\u51fd\u6570\u5e38\u7528\u4e8e\u5bf9\u6570\u636e\u8fdb\u884c\u5feb\u901f\u64cd\u4f5c\uff0c\u5c24\u5176\u662f\u5728\u4f7f\u7528<code>apply()<\/code>\u51fd\u6570\u65f6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>df = pd.DataFrame({&#39;A&#39;: [1, 2, 3], &#39;B&#39;: [10, 20, 30]})<\/p>\n<p>df[&#39;C&#39;] = df.apply(lambda row: row[&#39;A&#39;] + row[&#39;B&#39;], axis=1)<\/p>\n<p>print(df)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0clambda\u51fd\u6570\u7528\u4e8e\u5c06\u6570\u636e\u6846\u4e2d\u6bcf\u884c\u7684\u4e24\u4e2a\u5217\u76f8\u52a0\u3002<\/p>\n<\/p>\n<p><p>\u4e5d\u3001\u9650\u5236\u4e0e\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<p><p>\u867d\u7136lambda\u51fd\u6570\u975e\u5e38\u7075\u6d3b\uff0c\u4f46\u4e5f\u6709\u5176\u9650\u5236\u3002\u7531\u4e8elambda\u51fd\u6570\u53ea\u80fd\u5305\u542b\u4e00\u4e2a\u8868\u8fbe\u5f0f\uff0c\u56e0\u6b64\u65e0\u6cd5\u6267\u884c\u591a\u884c\u64cd\u4f5c\u3002\u6b64\u5916\uff0c\u8fc7\u5ea6\u4f7f\u7528lambda\u51fd\u6570\u53ef\u80fd\u5bfc\u81f4\u4ee3\u7801\u96be\u4ee5\u9605\u8bfb\u548c\u7ef4\u62a4\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0clambda\u51fd\u6570\u5728Python\u4e2d\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u9002\u7528\u4e8e\u9700\u8981\u7b80\u6d01\u5b9a\u4e49\u51fd\u6570\u7684\u573a\u5408\u3002\u901a\u8fc7\u719f\u7ec3\u638c\u63e1\u5176\u7528\u6cd5\uff0c\u53ef\u4ee5\u7f16\u5199\u51fa\u7b80\u6d01\u800c\u9ad8\u6548\u7684Python\u4ee3\u7801\u3002\u7136\u800c\uff0c\u5728\u4f7f\u7528lambda\u51fd\u6570\u65f6\uff0c\u4e5f\u9700\u8981\u6743\u8861\u5176\u7b80\u6d01\u6027\u548c\u4ee3\u7801\u53ef\u8bfb\u6027\u4e4b\u95f4\u7684\u5173\u7cfb\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>1. \u4ec0\u4e48\u662fLambda\u51fd\u6570\uff0c\u4e3a\u4ec0\u4e48\u5728Python\u4e2d\u4f7f\u7528\u5b83\uff1f<\/strong><br \/>Lambda\u51fd\u6570\u662fPython\u4e2d\u7684\u4e00\u79cd\u533f\u540d\u51fd\u6570\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u7b80\u5316\u4ee3\u7801\u3002\u4e0e\u5e38\u89c4\u51fd\u6570\u4e0d\u540c\uff0cLambda\u51fd\u6570\u4e0d\u9700\u8981\u4f7f\u7528def\u5173\u952e\u5b57\u5b9a\u4e49\uff0c\u901a\u5e38\u7528\u4e8e\u9700\u8981\u4e00\u4e2a\u7b80\u5355\u7684\u51fd\u6570\u4f5c\u4e3a\u53c2\u6570\u7684\u573a\u666f\uff0c\u6bd4\u5982\u5728filter\u3001map\u548creduce\u7b49\u51fd\u6570\u4e2d\u3002\u7531\u4e8e\u5176\u7b80\u6d01\u7684\u8bed\u6cd5\uff0cLambda\u51fd\u6570\u7279\u522b\u9002\u5408\u6267\u884c\u7b80\u5355\u7684\u64cd\u4f5c\u3002<\/p>\n<p><strong>2. \u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u548c\u4f7f\u7528Lambda\u51fd\u6570\uff1f<\/strong><br \/>\u521b\u5efaLambda\u51fd\u6570\u7684\u8bed\u6cd5\u4e3a<code>lambda \u53c2\u6570: \u8868\u8fbe\u5f0f<\/code>\u3002\u4f8b\u5982\uff0c\u521b\u5efa\u4e00\u4e2a\u8ba1\u7b97\u5e73\u65b9\u7684Lambda\u51fd\u6570\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<code>square = lambda x: x ** 2<\/code>\u3002\u8c03\u7528\u65f6\uff0c\u53ea\u9700\u4f20\u5165\u53c2\u6570\uff0c\u6bd4\u5982<code>square(5)<\/code>\u5c06\u8fd4\u56de25\u3002Lambda\u51fd\u6570\u53ef\u4ee5\u63a5\u53d7\u591a\u4e2a\u53c2\u6570\uff0c\u5f62\u5982<code>lambda x, y: x + y<\/code>\uff0c\u7528\u4e8e\u8ba1\u7b97\u4e24\u4e2a\u6570\u7684\u548c\u3002<\/p>\n<p><strong>3. Lambda\u51fd\u6570\u548c\u666e\u901a\u51fd\u6570\u76f8\u6bd4\u6709\u54ea\u4e9b\u4f18\u7f3a\u70b9\uff1f<\/strong><br \/>Lambda\u51fd\u6570\u7684\u4e3b\u8981\u4f18\u70b9\u5728\u4e8e\u5176\u7b80\u6d01\u6027\uff0c\u9002\u5408\u7528\u4e8e\u7b80\u77ed\u7684\u529f\u80fd\u5b9e\u73b0\uff0c\u7279\u522b\u662f\u5728\u9700\u8981\u51fd\u6570\u4f5c\u4e3a\u53c2\u6570\u65f6\u3002\u800c\u5176\u7f3a\u70b9\u662f\u53ef\u8bfb\u6027\u8f83\u4f4e\uff0c\u5bf9\u4e8e\u590d\u6742\u7684\u903b\u8f91\u5b9e\u73b0\uff0c\u4f7f\u7528\u666e\u901a\u51fd\u6570\u66f4\u4e3a\u5408\u9002\u3002\u6b64\u5916\uff0cLambda\u51fd\u6570\u53ea\u80fd\u5305\u542b\u5355\u4e2a\u8868\u8fbe\u5f0f\uff0c\u65e0\u6cd5\u6267\u884c\u591a\u884c\u4ee3\u7801\uff0c\u56e0\u6b64\u5728\u529f\u80fd\u590d\u6742\u7684\u60c5\u51b5\u4e0b\uff0c\u666e\u901a\u51fd\u6570\u66f4\u4e3a\u7075\u6d3b\u548c\u6e05\u6670\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Lambda\u51fd\u6570\u5728Python\u4e2d\u8c03\u7528\u7684\u65b9\u6cd5\u6709\uff1a\u76f4\u63a5\u8c03\u7528\u3001\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u3001\u7ed3\u5408\u5185\u7f6e\u51fd\u6570\u3001\u4f5c\u4e3a\u533f\u540d\u51fd\u6570\u4f7f\u7528\u3002 \u5176\u4e2d\uff0c [&hellip;]","protected":false},"author":3,"featured_media":962266,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/962260"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=962260"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/962260\/revisions"}],"predecessor-version":[{"id":962268,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/962260\/revisions\/962268"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/962266"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=962260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=962260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=962260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}