{"id":969979,"date":"2024-12-27T05:21:54","date_gmt":"2024-12-26T21:21:54","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/969979.html"},"modified":"2024-12-27T05:21:56","modified_gmt":"2024-12-26T21:21:56","slug":"python%e5%a6%82%e4%bd%95%e5%ae%9a%e4%b9%89%e6%97%a0%e9%99%90%e6%95%b0%e5%88%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/969979.html","title":{"rendered":"python\u5982\u4f55\u5b9a\u4e49\u65e0\u9650\u6570\u5217"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24184015\/8aca5bf7-cb1a-46f0-be52-2643db228b92.webp\" alt=\"python\u5982\u4f55\u5b9a\u4e49\u65e0\u9650\u6570\u5217\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u5b9a\u4e49\u65e0\u9650\u6570\u5217\u53ef\u4ee5\u901a\u8fc7\u751f\u6210\u5668\u51fd\u6570\u3001itertools\u6a21\u5757\u3001\u9012\u5f52\u51fd\u6570\u7b49\u65b9\u5f0f\u5b9e\u73b0\u3002\u751f\u6210\u5668\u51fd\u6570\u662f\u4e00\u79cd\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u5728\u9700\u8981\u65f6\u52a8\u6001\u751f\u6210\u4e0b\u4e00\u4e2a\u6570\u800c\u4e0d\u9700\u8981\u9884\u5148\u8ba1\u7b97\u6574\u4e2a\u5e8f\u5217\u3002<\/strong> \u751f\u6210\u5668\u51fd\u6570\u901a\u8fc7\u4f7f\u7528 <code>yield<\/code> \u5173\u952e\u5b57\uff0c\u53ef\u4ee5\u6682\u505c\u51fd\u6570\u6267\u884c\u5e76\u5728\u4e0b\u6b21\u8c03\u7528\u65f6\u6062\u590d\u72b6\u6001\uff0c\u8fd9\u662f\u5b9e\u73b0\u65e0\u9650\u6570\u5217\u7684\u7406\u60f3\u9009\u62e9\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Python\u4e2d\u5b9a\u4e49\u548c\u4f7f\u7528\u65e0\u9650\u6570\u5217\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u751f\u6210\u5668\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u751f\u6210\u5668\u51fd\u6570\u662f\u4e00\u79cd\u7279\u6b8a\u7c7b\u578b\u7684\u51fd\u6570\uff0c\u5b83\u4f7f\u7528 <code>yield<\/code> \u5173\u952e\u5b57\u8fd4\u56de\u4e00\u4e2a\u503c\uff0c\u5e76\u5728\u88ab\u8c03\u7528\u65f6\u6682\u505c\u5176\u72b6\u6001\u3002\u8fd9\u79cd\u7279\u6027\u4f7f\u5f97\u751f\u6210\u5668\u975e\u5e38\u9002\u5408\u7528\u4e8e\u751f\u6210\u65e0\u9650\u6570\u5217\uff0c\u56e0\u4e3a\u5b83\u4eec\u4e0d\u4f1a\u5728\u5185\u5b58\u4e2d\u5b58\u50a8\u6574\u4e2a\u5e8f\u5217\uff0c\u800c\u662f\u52a8\u6001\u5730\u8ba1\u7b97\u4e0b\u4e00\u4e2a\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def infinite_sequence():<\/p>\n<p>    num = 0<\/p>\n<p>    while True:<\/p>\n<p>        yield num<\/p>\n<p>        num += 1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>infinite_sequence<\/code> \u662f\u4e00\u4e2a\u751f\u6210\u5668\u51fd\u6570\uff0c\u5b83\u4ece0\u5f00\u59cb\u751f\u6210\u65e0\u9650\u7684\u6574\u6570\u5e8f\u5217\u3002\u6bcf\u6b21\u8c03\u7528 <code>next()<\/code> \u65b9\u6cd5\u65f6\uff0c\u5b83\u8fd4\u56de\u5f53\u524d\u7684 <code>num<\/code> \u503c\uff0c\u5e76\u5c06 <code>num<\/code> \u589e\u52a01\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001itertools\u6a21\u5757<\/p>\n<\/p>\n<p><p>Python\u7684 <code>itertools<\/code> \u6a21\u5757\u5305\u542b\u591a\u4e2a\u7528\u4e8e\u64cd\u4f5c\u8fed\u4ee3\u5668\u7684\u51fd\u6570\uff0c\u5176\u4e2d\u7684 <code>count()<\/code> \u51fd\u6570\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u65e0\u9650\u6570\u5217\u3002<code>itertools.count()<\/code> \u4ece\u4e00\u4e2a\u6307\u5b9a\u7684\u8d77\u59cb\u503c\u5f00\u59cb\uff0c\u4ee5\u56fa\u5b9a\u7684\u6b65\u957f\u751f\u6210\u8fde\u7eed\u7684\u6574\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import itertools<\/p>\n<p>infinite_numbers = itertools.count(start=0, step=1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>itertools.count()<\/code> \u4ece0\u5f00\u59cb\u4ee5\u6b65\u957f1\u751f\u6210\u65e0\u9650\u6574\u6570\u5e8f\u5217\u3002\u4e0e\u751f\u6210\u5668\u51fd\u6570\u76f8\u4f3c\uff0c\u8fd9\u79cd\u65b9\u6cd5\u4e5f\u4e0d\u4f1a\u9884\u5148\u8ba1\u7b97\u6574\u4e2a\u5e8f\u5217\uff0c\u800c\u662f\u6309\u9700\u751f\u6210\u4e0b\u4e00\u4e2a\u503c\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u9012\u5f52\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u9012\u5f52\u51fd\u6570\u53ef\u4ee5\u7528\u4e8e\u751f\u6210\u65e0\u9650\u6570\u5217\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u907f\u514d\u8fbe\u5230Python\u7684\u9012\u5f52\u6df1\u5ea6\u9650\u5236\u3002\u9012\u5f52\u65b9\u6cd5\u901a\u5e38\u4e0d\u5982\u751f\u6210\u5668\u51fd\u6570\u548c <code>itertools<\/code> \u9ad8\u6548\uff0c\u56e0\u4e3a\u6bcf\u6b21\u9012\u5f52\u8c03\u7528\u90fd\u4f1a\u5728\u8c03\u7528\u6808\u4e2d\u589e\u52a0\u4e00\u4e2a\u65b0\u7684\u5e27\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def infinite_recursive(num=0):<\/p>\n<p>    print(num)<\/p>\n<p>    infinite_recursive(num + 1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>infinite_recursive<\/code> \u51fd\u6570\u901a\u8fc7\u9012\u5f52\u8c03\u7528\u81ea\u8eab\u751f\u6210\u65e0\u9650\u6574\u6570\u5e8f\u5217\u3002\u7136\u800c\uff0c\u8fd9\u79cd\u65b9\u6cd5\u4f1a\u5f88\u5feb\u8fbe\u5230Python\u7684\u9012\u5f52\u6df1\u5ea6\u9650\u5236\uff0c\u56e0\u6b64\u4e0d\u63a8\u8350\u7528\u4e8e\u751f\u6210\u65e0\u9650\u6570\u5217\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5176\u4ed6\u5b9e\u73b0\u65b9\u5f0f<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\u5916\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u7c7b\u6765\u5b9e\u73b0\u65e0\u9650\u6570\u5217\u3002\u5b9a\u4e49\u4e00\u4e2a\u7c7b\uff0c\u5176\u4e2d\u5305\u542b\u4e00\u4e2a\u751f\u6210\u5e8f\u5217\u7684\u8fed\u4ee3\u5668\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u903b\u8f91\u548c\u72b6\u6001\u7ba1\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class InfiniteSequence:<\/p>\n<p>    def __init__(self, start=0):<\/p>\n<p>        self.num = start<\/p>\n<p>    def __iter__(self):<\/p>\n<p>        return self<\/p>\n<p>    def __next__(self):<\/p>\n<p>        current = self.num<\/p>\n<p>        self.num += 1<\/p>\n<p>        return current<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>InfiniteSequence<\/code> \u7c7b\u5b9e\u73b0\u4e86 Python \u7684\u8fed\u4ee3\u5668\u534f\u8bae\uff0c\u901a\u8fc7 <code>__iter__<\/code> \u548c <code>__next__<\/code> \u65b9\u6cd5\u5b9a\u4e49\u4e86\u4e00\u4e2a\u65e0\u9650\u6574\u6570\u5e8f\u5217\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u5e94\u7528\u573a\u666f\u4e0e\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5e94\u7528\u573a\u666f<\/strong>\uff1a\u65e0\u9650\u6570\u5217\u5728\u8bb8\u591a\u7b97\u6cd5\u548c\u6570\u636e\u5904\u7406\u4efb\u52a1\u4e2d\u90fd\u6709\u5e94\u7528\uff0c\u4f8b\u5982\u751f\u6210\u65e0\u9650\u81ea\u7136\u6570\u3001\u6a21\u62df\u6570\u636e\u6d41\u3001\u5206\u5757\u5904\u7406\u5927\u6570\u636e\u96c6\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong><a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/58557.html\" target=\"_blank\">\u8d44\u6e90\u7ba1\u7406<\/a><\/strong>\uff1a\u5728\u4f7f\u7528\u65e0\u9650\u6570\u5217\u65f6\uff0c\u5fc5\u987b\u6ce8\u610f\u8d44\u6e90\u7ba1\u7406\uff0c\u56e0\u4e3a\u65e0\u9650\u6570\u5217\u53ef\u80fd\u5bfc\u81f4\u5185\u5b58\u6cc4\u6f0f\u6216\u6027\u80fd\u95ee\u9898\u3002\u786e\u4fdd\u5728\u751f\u6210\u548c\u5904\u7406\u65e0\u9650\u6570\u5217\u65f6\uff0c\u53ca\u65f6\u91ca\u653e\u672a\u4f7f\u7528\u7684\u8d44\u6e90\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7ec8\u6b62\u6761\u4ef6<\/strong>\uff1a\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u901a\u5e38\u9700\u8981\u4e3a\u65e0\u9650\u6570\u5217\u8bbe\u7f6e\u7ec8\u6b62\u6761\u4ef6\uff0c\u4ee5\u9632\u6b62\u7a0b\u5e8f\u9677\u5165\u65e0\u9650\u5faa\u73af\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u901a\u8fc7\u8ba1\u6570\u5668\u6216\u6761\u4ef6\u8bed\u53e5\u6765\u63a7\u5236\u5faa\u73af\u6b21\u6570\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6027\u80fd\u4f18\u5316<\/strong>\uff1a\u5728\u751f\u6210\u548c\u5904\u7406\u65e0\u9650\u6570\u5217\u65f6\uff0c\u8003\u8651\u4f7f\u7528\u9ad8\u6548\u7684\u7b97\u6cd5\u548c\u6570\u636e\u7ed3\u6784\uff0c\u4ee5\u63d0\u9ad8\u6027\u80fd\u548c\u51cf\u5c11\u5185\u5b58\u5360\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u5b9e\u4f8b\u5e94\u7528<\/p>\n<\/p>\n<ol>\n<li><strong>\u6590\u6ce2\u90a3\u5951\u6570\u5217<\/strong>\uff1a\u901a\u8fc7\u751f\u6210\u5668\u51fd\u6570\u5b9e\u73b0\u65e0\u9650\u6590\u6ce2\u90a3\u5951\u6570\u5217\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">def fibonacci():<\/p>\n<p>    a, b = 0, 1<\/p>\n<p>    while True:<\/p>\n<p>        yield a<\/p>\n<p>        a, b = b, a + b<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>fibonacci<\/code> \u51fd\u6570\u751f\u6210\u65e0\u9650\u7684\u6590\u6ce2\u90a3\u5951\u6570\u5217\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5e73\u65b9\u6570\u5217<\/strong>\uff1a\u4f7f\u7528 <code>itertools<\/code> \u751f\u6210\u65e0\u9650\u5e73\u65b9\u6570\u5217\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import itertools<\/p>\n<p>squares = (x * x for x in itertools.count(1))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u4e0e <code>itertools.count()<\/code> \u7ed3\u5408\u4f7f\u7528\uff0c\u751f\u6210\u65e0\u9650\u5e73\u65b9\u6570\u5217\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u968f\u673a\u6570\u5217<\/strong>\uff1a\u4f7f\u7528 <code>random<\/code> \u6a21\u5757\u751f\u6210\u65e0\u9650\u968f\u673a\u6570\u5217\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>def random_numbers():<\/p>\n<p>    while True:<\/p>\n<p>        yield random.random()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>random_numbers<\/code> \u51fd\u6570\u751f\u6210\u65e0\u9650\u7684\u968f\u673a\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5b9a\u4e49\u65e0\u9650\u6570\u5217\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u751f\u6210\u5668\u51fd\u6570\u3001itertools\u6a21\u5757\u3001\u9012\u5f52\u51fd\u6570\u548c\u7c7b\u5b9e\u73b0\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u6027\u80fd\u8981\u6c42\u3002\u751f\u6210\u5668\u51fd\u6570\u548c <code>itertools<\/code> \u662f\u6700\u5e38\u7528\u548c\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u4eec\u80fd\u591f\u52a8\u6001\u751f\u6210\u5e8f\u5217\u5143\u7d20\u800c\u4e0d\u5360\u7528\u989d\u5916\u7684\u5185\u5b58\u3002\u901a\u8fc7\u5408\u7406\u4f7f\u7528\u8fd9\u4e9b\u6280\u672f\uff0c\u53ef\u4ee5\u5728Python\u4e2d\u7075\u6d3b\u5730\u5b9e\u73b0\u548c\u64cd\u4f5c\u65e0\u9650\u6570\u5217\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u65e0\u9650\u6570\u5217\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u751f\u6210\u5668\u6765\u521b\u5efa\u65e0\u9650\u6570\u5217\u3002\u751f\u6210\u5668\u662f\u4e00\u4e2a\u7279\u6b8a\u7684\u8fed\u4ee3\u5668\uff0c\u53ef\u4ee5\u5728\u9700\u8981\u65f6\u751f\u6210\u503c\uff0c\u800c\u4e0d\u9700\u8981\u4e00\u6b21\u6027\u751f\u6210\u6240\u6709\u503c\u3002\u4f7f\u7528<code>yield<\/code>\u5173\u952e\u5b57\u53ef\u4ee5\u8f7b\u677e\u5b9a\u4e49\u4e00\u4e2a\u751f\u6210\u5668\u51fd\u6570\uff0c\u8fd4\u56de\u65e0\u9650\u6570\u5217\u3002\u4f8b\u5982\uff0c\u521b\u5efa\u4e00\u4e2a\u751f\u6210\u81ea\u7136\u6570\u7684\u65e0\u9650\u6570\u5217\u7684\u751f\u6210\u5668\uff1a<\/p>\n<pre><code class=\"language-python\">def natural_numbers():\n    n = 1\n    while True:\n        yield n\n        n += 1\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8c03\u7528<code>natural_numbers()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u83b7\u5f97\u4e00\u4e2a\u751f\u6210\u5668\u5bf9\u8c61\uff0c\u4f7f\u7528<code>next()<\/code>\u51fd\u6570\u53ef\u4ee5\u9010\u4e2a\u83b7\u53d6\u81ea\u7136\u6570\u3002<\/p>\n<p><strong>\u65e0\u9650\u6570\u5217\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u6709\u54ea\u4e9b\u7528\u9014\uff1f<\/strong><br \/>\u65e0\u9650\u6570\u5217\u5728\u8bb8\u591a\u9886\u57df\u90fd\u6709\u5b9e\u9645\u5e94\u7528\u3002\u4f8b\u5982\uff0c\u5728\u6570\u5b66\u8ba1\u7b97\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5904\u7406\u65e0\u7a77\u7ea7\u6570\u6216\u5e8f\u5217\u7684\u6c42\u548c\u3002\u5728\u6570\u636e\u6d41\u5904\u7406\u4e2d\uff0c\u5904\u7406\u5b9e\u65f6\u6570\u636e\u6d41\u65f6\u4e5f\u5e38\u5e38\u9700\u8981\u4f7f\u7528\u65e0\u9650\u6570\u5217\u3002\u6b64\u5916\uff0c\u5728<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u548c\u7b97\u6cd5\u8bbe\u8ba1\u4e2d\uff0c\u751f\u6210\u65e0\u9650\u8bad\u7ec3\u6837\u672c\u6216\u65e0\u9650\u63a2\u7d22\u7a7a\u95f4\u4e5f\u662f\u5e38\u89c1\u9700\u6c42\u3002<\/p>\n<p><strong>\u4f7f\u7528\u65e0\u9650\u6570\u5217\u65f6\u9700\u8981\u6ce8\u610f\u4ec0\u4e48\uff1f<\/strong><br \/>\u4f7f\u7528\u65e0\u9650\u6570\u5217\u65f6\uff0c\u9700\u7279\u522b\u6ce8\u610f\u5185\u5b58\u548c\u6027\u80fd\u95ee\u9898\u3002\u5c3d\u7ba1\u751f\u6210\u5668\u5728\u5185\u5b58\u4f7f\u7528\u4e0a\u76f8\u5bf9\u9ad8\u6548\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u8fc7\u5ea6\u8c03\u7528\u751f\u6210\u5668\u53ef\u80fd\u5bfc\u81f4\u6027\u80fd\u4e0b\u964d\u3002\u786e\u4fdd\u5728\u4f7f\u7528\u65e0\u9650\u6570\u5217\u65f6\u8bbe\u7f6e\u5408\u9002\u7684\u7ec8\u6b62\u6761\u4ef6\u6216\u8005\u9650\u5236\u751f\u6210\u503c\u7684\u6570\u91cf\uff0c\u4ee5\u907f\u514d\u7a0b\u5e8f\u9677\u5165\u65e0\u9650\u5faa\u73af\u3002\u6b64\u5916\uff0c\u5904\u7406\u6765\u81ea\u65e0\u9650\u6570\u5217\u7684\u6570\u636e\u65f6\uff0c\u8003\u8651\u4f7f\u7528\u9002\u5f53\u7684\u6570\u636e\u7ed3\u6784\u6765\u5b58\u50a8\u548c\u5904\u7406\u8fd9\u4e9b\u6570\u636e\uff0c\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u5b9a\u4e49\u65e0\u9650\u6570\u5217\u53ef\u4ee5\u901a\u8fc7\u751f\u6210\u5668\u51fd\u6570\u3001itertools\u6a21\u5757\u3001\u9012\u5f52\u51fd\u6570\u7b49\u65b9\u5f0f\u5b9e\u73b0\u3002\u751f\u6210\u5668\u51fd\u6570\u662f\u4e00\u79cd [&hellip;]","protected":false},"author":3,"featured_media":969985,"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\/969979"}],"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=969979"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/969979\/revisions"}],"predecessor-version":[{"id":969989,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/969979\/revisions\/969989"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/969985"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=969979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=969979"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=969979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}