{"id":1014115,"date":"2024-12-27T11:53:31","date_gmt":"2024-12-27T03:53:31","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1014115.html"},"modified":"2024-12-27T11:53:33","modified_gmt":"2024-12-27T03:53:33","slug":"python%e5%a6%82%e4%bd%95%e7%94%a8for%e5%be%aa%e7%8e%af","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1014115.html","title":{"rendered":"python\u5982\u4f55\u7528for\u5faa\u73af"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25094330\/16aee86f-ac94-49bc-a34f-5605ad166bcc.webp\" alt=\"python\u5982\u4f55\u7528for\u5faa\u73af\" \/><\/p>\n<p><p> <strong>Python\u4e2d\u4f7f\u7528for\u5faa\u73af\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u904d\u5386\u5217\u8868\u3001\u904d\u5386\u5b57\u7b26\u4e32\u3001\u4f7f\u7528range\u51fd\u6570\u3001\u5d4c\u5957\u5faa\u73af\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528range\u51fd\u6570\u662f\u6700\u5e38\u89c1\u7684\u65b9\u5f0f\u4e4b\u4e00\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u6570\u5b57\u5e8f\u5217\uff0c\u65b9\u4fbf\u5730\u7528\u4e8e\u5faa\u73af\u4e2d\u3002<strong>\u4f8b\u5982\uff0c\u5f53\u9700\u8981\u5bf9\u4e00\u4e2a\u5217\u8868\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u8fdb\u884c\u64cd\u4f5c\u65f6\uff0cfor\u5faa\u73af\u662f\u4e00\u4e2a\u975e\u5e38\u6709\u6548\u7684\u5de5\u5177\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u904d\u5386\u5217\u8868<\/p>\n<\/p>\n<p><p>Python\u4e2d\u7684for\u5faa\u73af\u6700\u5e38\u89c1\u7684\u7528\u9014\u4e4b\u4e00\u5c31\u662f\u904d\u5386\u5217\u8868\u3002\u53ef\u4ee5\u901a\u8fc7for\u5faa\u73af\u6765\u8bbf\u95ee\u5217\u8868\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\uff0c\u5e76\u5bf9\u5176\u8fdb\u884c\u64cd\u4f5c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">fruits = [&#39;apple&#39;, &#39;banana&#39;, &#39;cherry&#39;]<\/p>\n<p>for fruit in fruits:<\/p>\n<p>    print(fruit)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cfor\u5faa\u73af\u4f9d\u6b21\u8bbf\u95ee\u5217\u8868\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\uff0c\u5e76\u5c06\u5176\u6253\u5370\u51fa\u6765\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5bf9\u5217\u8868\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u8fdb\u884c\u4e0d\u540c\u7684\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u904d\u5386\u5b57\u7b26\u4e32<\/p>\n<\/p>\n<p><p>for\u5faa\u73af\u4e0d\u4ec5\u53ef\u4ee5\u7528\u4e8e\u5217\u8868\uff0c\u8fd8\u53ef\u4ee5\u7528\u4e8e\u5b57\u7b26\u4e32\u3002\u56e0\u4e3a\u5b57\u7b26\u4e32\u5728Python\u4e2d\u662f\u4e00\u4e2a\u5b57\u7b26\u5e8f\u5217\uff0c\u6240\u4ee5\u53ef\u4ee5\u4f7f\u7528for\u5faa\u73af\u6765\u904d\u5386\u6bcf\u4e00\u4e2a\u5b57\u7b26\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">word = &quot;Python&quot;<\/p>\n<p>for letter in word:<\/p>\n<p>    print(letter)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cfor\u5faa\u73af\u4f9d\u6b21\u8bbf\u95ee\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5b57\u7b26\uff0c\u5e76\u5c06\u5176\u6253\u5370\u51fa\u6765\u3002\u8fd9\u5bf9\u4e8e\u9700\u8981\u5bf9\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5b57\u7b26\u8fdb\u884c\u64cd\u4f5c\u7684\u60c5\u51b5\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528range\u51fd\u6570<\/p>\n<\/p>\n<p><p>range\u51fd\u6570\u662fPython\u4e2d\u975e\u5e38\u6709\u7528\u7684\u4e00\u4e2a\u5185\u7f6e\u51fd\u6570\uff0c\u5b83\u751f\u6210\u4e00\u4e2a\u6574\u6570\u5e8f\u5217\uff0c\u901a\u5e38\u7528\u4e8efor\u5faa\u73af\u4e2d\u3002\u4f7f\u7528range\u51fd\u6570\u53ef\u4ee5\u65b9\u4fbf\u5730\u521b\u5efa\u4e00\u4e2a\u5faa\u73af\u6765\u6267\u884c\u7279\u5b9a\u6b21\u6570\u7684\u64cd\u4f5c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for i in range(5):<\/p>\n<p>    print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0crange(5)\u751f\u6210\u4e86\u4e00\u4e2a\u4ece0\u52304\u7684\u6574\u6570\u5e8f\u5217\uff0cfor\u5faa\u73af\u5c06\u6267\u884c5\u6b21\uff0c\u5e76\u5728\u6bcf\u6b21\u8fed\u4ee3\u65f6\u6253\u5370\u201cHello, World!\u201d\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5d4c\u5957\u5faa\u73af<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u5019\u9700\u8981\u5728\u5faa\u73af\u4e2d\u5d4c\u5957\u53e6\u4e00\u4e2a\u5faa\u73af\uff0c\u5373\u6240\u8c13\u7684\u5d4c\u5957\u5faa\u73af\u3002\u8fd9\u5728\u5904\u7406\u4e8c\u7ef4\u6570\u636e\u7ed3\u6784\uff08\u5982\u77e9\u9635\uff09\u65f6\u975e\u5e38\u6709\u7528\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">matrix = [<\/p>\n<p>    [1, 2, 3],<\/p>\n<p>    [4, 5, 6],<\/p>\n<p>    [7, 8, 9]<\/p>\n<p>]<\/p>\n<p>for row in matrix:<\/p>\n<p>    for item in row:<\/p>\n<p>        print(item)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5916\u5c42\u5faa\u73af\u904d\u5386\u77e9\u9635\u7684\u6bcf\u4e00\u884c\uff0c\u800c\u5185\u5c42\u5faa\u73af\u904d\u5386\u6bcf\u4e00\u884c\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u8bbf\u95ee\u77e9\u9635\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u5faa\u73af\u63a7\u5236\u8bed\u53e5<\/p>\n<\/p>\n<p><p>\u5728for\u5faa\u73af\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u63a7\u5236\u8bed\u53e5\u6765\u6539\u53d8\u5faa\u73af\u7684\u6267\u884c\u6d41\u7a0b\u3002\u8fd9\u4e9b\u63a7\u5236\u8bed\u53e5\u5305\u62ecbreak\u3001continue\u548celse\u8bed\u53e5\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>break\u8bed\u53e5<\/strong>\uff1a\u7528\u4e8e\u7acb\u5373\u7ec8\u6b62\u5faa\u73af\u3002\u4f8b\u5982\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">for i in range(10):<\/p>\n<p>    if i == 5:<\/p>\n<p>        break<\/p>\n<p>    print(i)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5f53i\u7b49\u4e8e5\u65f6\uff0cbreak\u8bed\u53e5\u5c06\u7ec8\u6b62\u5faa\u73af\uff0c\u56e0\u6b64\u53ea\u4f1a\u6253\u53700\u52304\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>continue\u8bed\u53e5<\/strong>\uff1a\u7528\u4e8e\u8df3\u8fc7\u5f53\u524d\u8fed\u4ee3\u7684\u5269\u4f59\u90e8\u5206\uff0c\u7acb\u5373\u5f00\u59cb\u4e0b\u4e00\u6b21\u8fed\u4ee3\u3002\u4f8b\u5982\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">for i in range(10):<\/p>\n<p>    if i % 2 == 0:<\/p>\n<p>        continue<\/p>\n<p>    print(i)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0ccontinue\u8bed\u53e5\u7528\u4e8e\u8df3\u8fc7\u5076\u6570\uff0c\u6240\u4ee5\u53ea\u4f1a\u6253\u5370\u5947\u65701\u30013\u30015\u30017\u30019\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>else\u8bed\u53e5<\/strong>\uff1a\u7528\u4e8e\u5728\u5faa\u73af\u6b63\u5e38\u7ed3\u675f\u65f6\u6267\u884c\u4e00\u6bb5\u4ee3\u7801\u3002\u5982\u679c\u5faa\u73af\u88abbreak\u8bed\u53e5\u7ec8\u6b62\uff0c\u5219\u4e0d\u4f1a\u6267\u884celse\u5757\u3002\u4f8b\u5982\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">for i in range(5):<\/p>\n<p>    print(i)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Loop completed successfully.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5faa\u73af\u6b63\u5e38\u7ed3\u675f\uff0c\u56e0\u6b64else\u5757\u4e2d\u7684\u6d88\u606f\u5c06\u4f1a\u88ab\u6253\u5370\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001for\u5faa\u73af\u4e0e\u5217\u8868\u63a8\u5bfc\u5f0f<\/p>\n<\/p>\n<p><p>Python\u8fd8\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u5f0f\u6765\u521b\u5efa\u5217\u8868\uff0c\u5373\u5217\u8868\u63a8\u5bfc\u5f0f\u3002\u5217\u8868\u63a8\u5bfc\u5f0f\u662f\u4e00\u79cd\u7b80\u5316\u7684for\u5faa\u73af\u8bed\u6cd5\uff0c\u7528\u4e8e\u751f\u6210\u5217\u8868\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">squares = [x2 for x in range(10)]<\/p>\n<p>print(squares)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5217\u8868\u63a8\u5bfc\u5f0f\u7528\u4e8e\u751f\u6210\u4e00\u4e2a\u5305\u542b\u4ece0\u52309\u7684\u5e73\u65b9\u7684\u5217\u8868\u3002\u5217\u8868\u63a8\u5bfc\u5f0f\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6d01\u800c\u5f3a\u5927\u7684\u65b9\u5f0f\u6765\u521b\u5efa\u5217\u8868\uff0c\u4f7f\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u660e\u4e86\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001for\u5faa\u73af\u4e0e\u5b57\u5178<\/p>\n<\/p>\n<p><p>for\u5faa\u73af\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5b57\u5178\u4e2d\u3002\u4f7f\u7528\u5b57\u5178\u7684items()\u65b9\u6cd5\uff0c\u53ef\u4ee5\u540c\u65f6\u83b7\u53d6\u5b57\u5178\u7684\u952e\u548c\u503c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">student_ages = {&#39;Alice&#39;: 20, &#39;Bob&#39;: 22, &#39;Charlie&#39;: 23}<\/p>\n<p>for name, age in student_ages.items():<\/p>\n<p>    print(f&quot;{name} is {age} years old.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cfor\u5faa\u73af\u904d\u5386\u5b57\u5178\u7684\u6bcf\u4e00\u4e2a\u952e\u503c\u5bf9\uff0c\u5e76\u5c06\u5176\u6253\u5370\u51fa\u6765\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bbf\u95ee\u5b57\u5178\u4e2d\u7684\u6bcf\u4e00\u9879\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001for\u5faa\u73af\u4e0e\u96c6\u5408<\/p>\n<\/p>\n<p><p>\u96c6\u5408\u662f\u4e00\u79cd\u65e0\u5e8f\u7684\u6570\u636e\u7ed3\u6784\uff0c\u53ef\u4ee5\u4f7f\u7528for\u5faa\u73af\u6765\u904d\u5386\u96c6\u5408\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">unique_numbers = {1, 2, 3, 4, 5}<\/p>\n<p>for number in unique_numbers:<\/p>\n<p>    print(number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cfor\u5faa\u73af\u904d\u5386\u96c6\u5408\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\uff0c\u5e76\u5c06\u5176\u6253\u5370\u51fa\u6765\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u8bbf\u95ee\u96c6\u5408\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>Python\u4e2d\u7684for\u5faa\u73af\u662f\u4e00\u79cd\u975e\u5e38\u7075\u6d3b\u548c\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u9002\u7528\u4e8e\u591a\u79cd\u6570\u636e\u7ed3\u6784\uff0c\u5305\u62ec\u5217\u8868\u3001\u5b57\u7b26\u4e32\u3001\u5b57\u5178\u548c\u96c6\u5408\u3002\u901a\u8fc7\u4f7f\u7528for\u5faa\u73af\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u904d\u5386\u8fd9\u4e9b\u6570\u636e\u7ed3\u6784\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\uff0c\u5e76\u5bf9\u5176\u8fdb\u884c\u64cd\u4f5c\u3002\u6b64\u5916\uff0cfor\u5faa\u73af\u8fd8\u652f\u6301\u5d4c\u5957\u3001\u4f7f\u7528\u63a7\u5236\u8bed\u53e5\u4ee5\u53ca\u4e0e\u5217\u8868\u63a8\u5bfc\u5f0f\u7ed3\u5408\u4f7f\u7528\uff0c\u4ece\u800c\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u529f\u80fd\u548c\u7075\u6d3b\u6027\u3002\u65e0\u8bba\u662f\u5728\u5904\u7406\u7b80\u5355\u7684\u6570\u636e\u7ed3\u6784\u8fd8\u662f\u590d\u6742\u7684\u7b97\u6cd5\uff0cfor\u5faa\u73af\u90fd\u662fPython\u7f16\u7a0b\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528for\u5faa\u73af\u904d\u5386\u5217\u8868\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0cfor\u5faa\u73af\u53ef\u4ee5\u8f7b\u677e\u904d\u5386\u5217\u8868\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u3002\u53ea\u9700\u4f7f\u7528<code>for element in list:<\/code>\u7684\u8bed\u6cd5\uff0c\u5176\u4e2d<code>list<\/code>\u662f\u4f60\u7684\u5217\u8868\u540d\uff0c<code>element<\/code>\u662f\u4f60\u60f3\u5728\u5faa\u73af\u4e2d\u4f7f\u7528\u7684\u53d8\u91cf\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">fruits = [&#39;apple&#39;, &#39;banana&#39;, &#39;cherry&#39;]\nfor fruit in fruits:\n    print(fruit)\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u4f9d\u6b21\u6253\u5370\u51fa\u5217\u8868\u4e2d\u7684\u6bcf\u4e2a\u6c34\u679c\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u53ef\u4ee5\u7528for\u5faa\u73af\u5b9e\u73b0\u54ea\u4e9b\u529f\u80fd\uff1f<\/strong><br \/>for\u5faa\u73af\u5728Python\u4e2d\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u904d\u5386\u96c6\u5408\u3001\u5143\u7ec4\u3001\u5b57\u7b26\u4e32\u7b49\u6570\u636e\u7ed3\u6784\uff0c\u8fd8\u53ef\u4ee5\u7ed3\u5408\u6761\u4ef6\u8bed\u53e5\u548c\u51fd\u6570\u6765\u5b9e\u73b0\u590d\u6742\u7684\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528for\u5faa\u73af\u6765\u8ba1\u7b97\u5217\u8868\u4e2d\u6240\u6709\u6570\u5b57\u7684\u603b\u548c\uff0c\u6216\u8005\u7b5b\u9009\u51fa\u7b26\u5408\u7279\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728for\u5faa\u73af\u4e2d\u4f7f\u7528range()\u51fd\u6570\uff1f<\/strong><br \/>Python\u7684<code>range()<\/code>\u51fd\u6570\u975e\u5e38\u9002\u5408\u4e0efor\u5faa\u73af\u7ed3\u5408\u4f7f\u7528\uff0c\u5141\u8bb8\u4f60\u751f\u6210\u4e00\u4e2a\u6307\u5b9a\u8303\u56f4\u5185\u7684\u6574\u6570\u5e8f\u5217\u3002\u4f7f\u7528<code>for i in range(start, stop):<\/code>\u7684\u8bed\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u904d\u5386\u6307\u5b9a\u8303\u56f4\u7684\u6570\u5b57\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">for i in range(1, 5):\n    print(i)\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u8f93\u51fa1\u52304\u7684\u6570\u5b57\u3002\u5982\u679c\u53ea\u63d0\u4f9b\u4e00\u4e2a\u53c2\u6570<code>range(5)<\/code>\uff0c\u5219\u4f1a\u751f\u62100\u52304\u7684\u6570\u5b57\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u7075\u6d3b\u5730\u63a7\u5236\u5faa\u73af\u7684\u6b21\u6570\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u4f7f\u7528for\u5faa\u73af\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u904d\u5386\u5217\u8868\u3001\u904d\u5386\u5b57\u7b26\u4e32\u3001\u4f7f\u7528range\u51fd\u6570\u3001\u5d4c\u5957\u5faa\u73af\u3002\u5176\u4e2d\uff0c\u4f7f\u7528rang [&hellip;]","protected":false},"author":3,"featured_media":1014122,"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\/1014115"}],"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=1014115"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1014115\/revisions"}],"predecessor-version":[{"id":1014127,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1014115\/revisions\/1014127"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1014122"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1014115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1014115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1014115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}