{"id":1071879,"date":"2025-01-08T11:11:16","date_gmt":"2025-01-08T03:11:16","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1071879.html"},"modified":"2025-01-08T11:11:19","modified_gmt":"2025-01-08T03:11:19","slug":"%e5%a6%82%e4%bd%95%e5%90%88%e5%b9%b6python%e4%b8%a4%e4%b8%aa%e5%ad%97%e5%85%b8-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1071879.html","title":{"rendered":"\u5982\u4f55\u5408\u5e76python\u4e24\u4e2a\u5b57\u5178"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25102248\/bcc934e5-e2d2-48d2-8a1d-761713e6dc48.webp\" alt=\"\u5982\u4f55\u5408\u5e76python\u4e24\u4e2a\u5b57\u5178\" \/><\/p>\n<p><p> <strong>\u5408\u5e76Python\u4e24\u4e2a\u5b57\u5178\u7684\u4e3b\u8981\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528update()\u65b9\u6cd5\u3001\u4f7f\u7528<\/strong>\u8fd0\u7b97\u7b26\u3001\u4f7f\u7528dict()\u6784\u9020\u51fd\u6570\u3001\u4f7f\u7528Ch<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nMap\u7c7b\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u8ba8\u8bba\u5b83\u4eec\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u3002\u4f7f\u7528update()\u65b9\u6cd5\u662f\u6700\u5e38\u89c1\u4e5f\u662f\u6700\u7b80\u5355\u7684\u4e00\u79cd\u65b9\u6cd5\uff0c\u5b83\u76f4\u63a5\u5c06\u4e00\u4e2a\u5b57\u5178\u7684\u952e\u503c\u5bf9\u66f4\u65b0\u5230\u53e6\u4e00\u4e2a\u5b57\u5178\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528update()\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u4f7f\u7528update()\u65b9\u6cd5\u662f\u6700\u5e38\u89c1\u7684\u5408\u5e76\u5b57\u5178\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u5b83\u4f1a\u5c06\u4e00\u4e2a\u5b57\u5178\u7684\u952e\u503c\u5bf9\u66f4\u65b0\u5230\u53e6\u4e00\u4e2a\u5b57\u5178\u4e2d\u3002\u5982\u679c\u4e24\u4e2a\u5b57\u5178\u4e2d\u6709\u76f8\u540c\u7684\u952e\uff0c\u540e\u9762\u7684\u5b57\u5178\u7684\u503c\u4f1a\u8986\u76d6\u524d\u9762\u7684\u5b57\u5178\u7684\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">dict1 = {&#39;a&#39;: 1, &#39;b&#39;: 2}<\/p>\n<p>dict2 = {&#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p>dict1.update(dict2)<\/p>\n<p>print(dict1)  # {&#39;a&#39;: 1, &#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u6d01\u6613\u61c2\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5\u3002\u4f46\u662f\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u4f1a\u76f4\u63a5\u4fee\u6539\u7b2c\u4e00\u4e2a\u5b57\u5178\uff0c\u5982\u679c\u4e0d\u5e0c\u671b\u4fee\u6539\u539f\u5b57\u5178\uff0c\u53ef\u4ee5\u5728\u5408\u5e76\u524d\u5148\u590d\u5236\u4e00\u4efd\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u8fd0\u7b97\u7b26<\/p>\n<\/p>\n<p><p>Python 3.5\u53ca\u4ee5\u4e0a\u7248\u672c\u5f15\u5165\u4e86\u4e00\u4e2a\u65b0\u7684\u5b57\u5178\u5408\u5e76\u65b9\u6cd5\uff0c\u5373\u4f7f\u7528\u8fd0\u7b97\u7b26\u3002\u8fd9\u79cd\u65b9\u6cd5\u4f1a\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5b57\u5178\uff0c\u800c\u4e0d\u4f1a\u4fee\u6539\u539f\u59cb\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">dict1 = {&#39;a&#39;: 1, &#39;b&#39;: 2}<\/p>\n<p>dict2 = {&#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p>merged_dict = {&lt;strong&gt;dict1, &lt;\/strong&gt;dict2}<\/p>\n<p>print(merged_dict)  # {&#39;a&#39;: 1, &#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u4e0d\u4f1a\u4fee\u6539\u539f\u59cb\u5b57\u5178\uff0c\u9002\u7528\u4e8e\u9700\u8981\u4fdd\u7559\u539f\u5b57\u5178\u7684\u60c5\u51b5\u3002<\/strong>\u53e6\u5916\uff0c\u5b83\u7684\u8bed\u6cd5\u4e5f\u975e\u5e38\u7b80\u6d01\u548c\u76f4\u89c2\u3002\u4f46\u662f\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u8981\u6c42Python\u7248\u672c\u57283.5\u53ca\u4ee5\u4e0a\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528dict()\u6784\u9020\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u4f7f\u7528dict()\u6784\u9020\u51fd\u6570\u53ef\u4ee5\u5c06\u591a\u4e2a\u5b57\u5178\u5408\u5e76\u6210\u4e00\u4e2a\u65b0\u7684\u5b57\u5178\u3002\u4e0e\u4f7f\u7528\u8fd0\u7b97\u7b26\u7c7b\u4f3c\uff0c\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4f1a\u4fee\u6539\u539f\u59cb\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">dict1 = {&#39;a&#39;: 1, &#39;b&#39;: 2}<\/p>\n<p>dict2 = {&#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p>merged_dict = dict(dict1, dict2)<\/p>\n<p>print(merged_dict)  # {&#39;a&#39;: 1, &#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7075\u6d3b\u6027\u9ad8\uff0c\u53ef\u4ee5\u5728\u5408\u5e76\u5b57\u5178\u7684\u540c\u65f6\u8fdb\u884c\u5176\u4ed6\u64cd\u4f5c\uff0c\u4f8b\u5982\u6dfb\u52a0\u65b0\u7684\u952e\u503c\u5bf9\u3002\u5b83\u7684\u7f3a\u70b9\u662f\u53ef\u8bfb\u6027\u8f83\u5dee\uff0c\u4e0d\u5982\u524d\u4e24\u79cd\u65b9\u6cd5\u76f4\u89c2\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528ChainMap\u7c7b<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u9891\u7e41\u5408\u5e76\u548c\u8bbf\u95ee\u591a\u4e2a\u5b57\u5178\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528collections\u6a21\u5757\u4e2d\u7684ChainMap\u7c7b\u3002ChainMap\u7c7b\u53ef\u4ee5\u5c06\u591a\u4e2a\u5b57\u5178\u89c6\u4e3a\u4e00\u4e2a\u5b57\u5178\u8fdb\u884c\u64cd\u4f5c\uff0c\u800c\u4e0d\u4f1a\u771f\u6b63\u5408\u5e76\u5b83\u4eec\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from collections import ChainMap<\/p>\n<p>dict1 = {&#39;a&#39;: 1, &#39;b&#39;: 2}<\/p>\n<p>dict2 = {&#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p>merged_dict = ChainMap(dict1, dict2)<\/p>\n<p>print(merged_dict)  # ChainMap({&#39;a&#39;: 1, &#39;b&#39;: 2}, {&#39;b&#39;: 3, &#39;c&#39;: 4})<\/p>\n<p>print(merged_dict[&#39;b&#39;])  # 2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u9ad8\u6548\uff0c\u53ef\u4ee5\u5728\u4e0d\u771f\u6b63\u5408\u5e76\u5b57\u5178\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u8bbf\u95ee\u548c\u4fee\u6539\u3002<\/strong>\u5b83\u7684\u7f3a\u70b9\u662f\u9700\u8981\u989d\u5916\u5bfc\u5165collections\u6a21\u5757\uff0c\u4f7f\u7528\u8d77\u6765\u7a0d\u663e\u590d\u6742\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528for\u5faa\u73af<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7for\u5faa\u73af\u624b\u52a8\u5408\u5e76\u5b57\u5178\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u5bf9\u5b57\u5178\u8fdb\u884c\u590d\u6742\u64cd\u4f5c\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">dict1 = {&#39;a&#39;: 1, &#39;b&#39;: 2}<\/p>\n<p>dict2 = {&#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p>merged_dict = {}<\/p>\n<p>for key, value in dict1.items():<\/p>\n<p>    merged_dict[key] = value<\/p>\n<p>for key, value in dict2.items():<\/p>\n<p>    merged_dict[key] = value<\/p>\n<p>print(merged_dict)  # {&#39;a&#39;: 1, &#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7075\u6d3b\u6027\u9ad8\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u8fdb\u884c\u5404\u79cd\u64cd\u4f5c\u3002<strong>\u5b83\u7684\u7f3a\u70b9\u662f\u4ee3\u7801\u8f83\u4e3a\u5197\u957f\uff0c\u4e0d\u5982\u524d\u51e0\u79cd\u65b9\u6cd5\u7b80\u6d01\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u516d\u3001\u6bd4\u8f83\u4e0d\u540c\u65b9\u6cd5\u7684\u6027\u80fd<\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u5408\u5e76\u5b57\u5178\u7684\u65b9\u6cd5\u65f6\uff0c\u6027\u80fd\u4e5f\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u8003\u8651\u56e0\u7d20\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u4f7f\u7528update()\u65b9\u6cd5\u548c\u8fd0\u7b97\u7b26\u7684\u6027\u80fd\u8f83\u597d\uff0c\u800c\u4f7f\u7528for\u5faa\u73af\u548cChainMap\u7c7b\u7684\u6027\u80fd\u8f83\u5dee\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u6027\u80fd\u6bd4\u8f83\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import timeit<\/p>\n<p>dict1 = {&#39;a&#39;: 1, &#39;b&#39;: 2}<\/p>\n<p>dict2 = {&#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<h2><strong>\u4f7f\u7528update()\u65b9\u6cd5<\/strong><\/h2>\n<p>def merge_update():<\/p>\n<p>    dict1.update(dict2)<\/p>\n<h2><strong>\u4f7f\u7528\u8fd0\u7b97\u7b26<\/strong><\/h2>\n<p>def merge_star():<\/p>\n<p>    merged_dict = {&lt;strong&gt;dict1, &lt;\/strong&gt;dict2}<\/p>\n<h2><strong>\u4f7f\u7528dict()\u6784\u9020\u51fd\u6570<\/strong><\/h2>\n<p>def merge_dict():<\/p>\n<p>    merged_dict = dict(dict1, dict2)<\/p>\n<h2><strong>\u4f7f\u7528ChainMap\u7c7b<\/strong><\/h2>\n<p>def merge_chainmap():<\/p>\n<p>    merged_dict = ChainMap(dict1, dict2)<\/p>\n<h2><strong>\u4f7f\u7528for\u5faa\u73af<\/strong><\/h2>\n<p>def merge_for():<\/p>\n<p>    merged_dict = {}<\/p>\n<p>    for key, value in dict1.items():<\/p>\n<p>        merged_dict[key] = value<\/p>\n<p>    for key, value in dict2.items():<\/p>\n<p>        merged_dict[key] = value<\/p>\n<p>print(timeit.timeit(merge_update, number=100000))<\/p>\n<p>print(timeit.timeit(merge_star, number=100000))<\/p>\n<p>print(timeit.timeit(merge_dict, number=100000))<\/p>\n<p>print(timeit.timeit(merge_chainmap, number=100000))<\/p>\n<p>print(timeit.timeit(merge_for, number=100000))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u4ee3\u7801\u53ef\u4ee5\u6bd4\u8f83\u4e0d\u540c\u65b9\u6cd5\u7684\u6267\u884c\u65f6\u95f4\uff0c\u4ece\u800c\u9009\u62e9\u6700\u9002\u5408\u7684\u5408\u5e76\u5b57\u5178\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5408\u5e76Python\u4e24\u4e2a\u5b57\u5178\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\u548c\u9002\u7528\u573a\u666f\u3002<strong>\u4f7f\u7528update()\u65b9\u6cd5\u548c<\/strong>\u8fd0\u7b97\u7b26\u662f\u6700\u5e38\u89c1\u548c\u7b80\u6d01\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5\u3002\u4f7f\u7528dict()\u6784\u9020\u51fd\u6570\u548cChainMap\u7c7b\u5219\u9002\u7528\u4e8e\u9700\u8981\u66f4\u9ad8\u7075\u6d3b\u6027\u548c\u9891\u7e41\u64cd\u4f5c\u7684\u60c5\u51b5\u3002\u4f7f\u7528for\u5faa\u73af\u867d\u7136\u4ee3\u7801\u8f83\u4e3a\u5197\u957f\uff0c\u4f46\u5728\u9700\u8981\u8fdb\u884c\u590d\u6742\u64cd\u4f5c\u65f6\u4ecd\u7136\u662f\u4e00\u4e2a\u6709\u6548\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u5408\u5e76\u5b57\u5178\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u6027\u80fd\u3002\u901a\u8fc7\u5bf9\u4e0d\u540c\u65b9\u6cd5\u7684\u6bd4\u8f83\u548c\u6027\u80fd\u6d4b\u8bd5\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u7406\u89e3\u5b83\u4eec\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\uff0c\u4ece\u800c\u505a\u51fa\u6700\u4f73\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5408\u5e76\u5b57\u5178\uff0c\u6709\u54ea\u4e9b\u5e38\u7528\u65b9\u6cd5\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5408\u5e76\u5b57\u5178\u7684\u5e38\u7528\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528<code>update()<\/code>\u65b9\u6cd5\u3001\u5b57\u5178\u63a8\u5bfc\u5f0f\u548c<code>&lt;strong&gt;<\/code>\u8fd0\u7b97\u7b26\u3002\u901a\u8fc7<code>update()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c06\u4e00\u4e2a\u5b57\u5178\u7684\u952e\u503c\u5bf9\u6dfb\u52a0\u5230\u53e6\u4e00\u4e2a\u5b57\u5178\u4e2d\uff0c\u800c\u5b57\u5178\u63a8\u5bfc\u5f0f\u548c<code>&lt;\/strong&gt;<\/code>\u8fd0\u7b97\u7b26\u5219\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5408\u5e76\u5b57\u5178\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u5177\u4f53\u9009\u62e9\u53d6\u51b3\u4e8e\u4f60\u7684\u9700\u6c42\u548c\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002<\/p>\n<p><strong>\u5728\u5408\u5e76\u5b57\u5178\u65f6\uff0c\u5982\u4f55\u5904\u7406\u91cd\u590d\u7684\u952e\uff1f<\/strong><br \/>\u5408\u5e76\u5b57\u5178\u65f6\uff0c\u82e5\u5b58\u5728\u91cd\u590d\u952e\uff0c\u540e\u4e00\u4e2a\u5b57\u5178\u4e2d\u7684\u503c\u5c06\u8986\u76d6\u524d\u4e00\u4e2a\u5b57\u5178\u4e2d\u7684\u503c\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>update()<\/code>\u65b9\u6cd5\u65f6\uff0c\u540e\u7eed\u7684\u5b57\u5178\u5185\u5bb9\u4f1a\u66ff\u6362\u5148\u524d\u5b57\u5178\u4e2d\u7684\u76f8\u540c\u952e\u7684\u503c\u3002\u5728\u4f7f\u7528\u5b57\u5178\u63a8\u5bfc\u5f0f\u6216<code>**<\/code>\u8fd0\u7b97\u7b26\u65f6\uff0c\u540e\u9762\u7684\u5b57\u5178\u5728\u5408\u5e76\u540e\u4e5f\u4f1a\u8986\u76d6\u76f8\u540c\u952e\u7684\u503c\u3002\u5904\u7406\u91cd\u590d\u952e\u65f6\uff0c\u53ef\u4ee5\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u9009\u62e9\u4fdd\u7559\u54ea\u4e2a\u5b57\u5178\u7684\u503c\u3002<\/p>\n<p><strong>\u5408\u5e76\u5b57\u5178\u65f6\uff0c\u5982\u4f55\u4fdd\u6301\u539f\u59cb\u5b57\u5178\u4e0d\u88ab\u4fee\u6539\uff1f<\/strong><br \/>\u5982\u679c\u5e0c\u671b\u5728\u5408\u5e76\u5b57\u5178\u7684\u8fc7\u7a0b\u4e2d\u4fdd\u6301\u539f\u59cb\u5b57\u5178\u4e0d\u88ab\u4fee\u6539\uff0c\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528<code>copy()<\/code>\u65b9\u6cd5\u521b\u5efa\u5b57\u5178\u7684\u526f\u672c\uff0c\u518d\u5bf9\u8fd9\u4e2a\u526f\u672c\u8fdb\u884c\u5408\u5e76\u64cd\u4f5c\u3002\u8fd9\u6837\uff0c\u539f\u59cb\u5b57\u5178\u7684\u5185\u5bb9\u5c06\u4e0d\u4f1a\u53d7\u5230\u5f71\u54cd\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u5b57\u5178\u63a8\u5bfc\u5f0f\u6216<code>**<\/code>\u8fd0\u7b97\u7b26\u521b\u5efa\u65b0\u7684\u5b57\u5178\u4e5f\u662f\u4e00\u4e2a\u597d\u65b9\u6cd5\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u64cd\u4f5c\u4e0d\u4f1a\u6539\u53d8\u539f\u59cb\u5b57\u5178\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5408\u5e76Python\u4e24\u4e2a\u5b57\u5178\u7684\u4e3b\u8981\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528update()\u65b9\u6cd5\u3001\u4f7f\u7528\u8fd0\u7b97\u7b26\u3001\u4f7f\u7528dict()\u6784\u9020\u51fd\u6570\u3001\u4f7f\u7528C [&hellip;]","protected":false},"author":3,"featured_media":1071889,"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\/1071879"}],"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=1071879"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1071879\/revisions"}],"predecessor-version":[{"id":1071891,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1071879\/revisions\/1071891"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1071889"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1071879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1071879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1071879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}