{"id":957346,"date":"2024-12-27T02:57:58","date_gmt":"2024-12-26T18:57:58","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/957346.html"},"modified":"2024-12-27T02:58:00","modified_gmt":"2024-12-26T18:58:00","slug":"python%e5%a6%82%e4%bd%95%e5%8f%aa%e9%81%8d%e5%8e%86%e5%8f%8c%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/957346.html","title":{"rendered":"Python\u5982\u4f55\u53ea\u904d\u5386\u53cc\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100703\/7e819ac5-0dd2-4523-b361-02e72418063d.webp\" alt=\"Python\u5982\u4f55\u53ea\u904d\u5386\u53cc\u6570\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u53ea\u904d\u5386\u53cc\u6570\uff08\u5076\u6570\uff09\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528for\u5faa\u73af\u7ed3\u5408\u6761\u4ef6\u5224\u65ad\u3001\u5217\u8868\u89e3\u6790\u548c\u751f\u6210\u5668\u7b49\u65b9\u6cd5\u6765\u5b9e\u73b0\u3002\u53ef\u4ee5\u4f7f\u7528<code>range<\/code>\u51fd\u6570\u751f\u6210\u5076\u6570\u5e8f\u5217\u3001\u7ed3\u5408\u6761\u4ef6\u5224\u65ad\u8fdb\u884c\u8fc7\u6ee4\u3001\u5229\u7528\u5217\u8868\u89e3\u6790\u548c\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u8fdb\u884c\u904d\u5386\u3002\u8fd9\u4e9b\u65b9\u6cd5\u63d0\u4f9b\u4e86\u9ad8\u6548\u4e14\u7b80\u6d01\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/strong>\u4e0b\u9762\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528<code>range<\/code>\u51fd\u6570\u751f\u6210\u5076\u6570\u5e8f\u5217<\/p>\n<\/p>\n<p><p>Python\u4e2d\u7684<code>range<\/code>\u51fd\u6570\u662f\u4e00\u4e2a\u5f3a\u5927\u4e14\u5e38\u7528\u7684\u5de5\u5177\uff0c\u80fd\u591f\u7528\u4e8e\u751f\u6210\u6570\u503c\u5e8f\u5217\u3002\u901a\u8fc7\u6307\u5b9a\u6b65\u957f\uff0c\u53ef\u4ee5\u5f88\u8f7b\u677e\u5730\u751f\u6210\u5076\u6570\u5e8f\u5217\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u901a\u8fc7<code>range(start, stop, step)<\/code>\u51fd\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u6307\u5b9a\u8d77\u59cb\u503c\u3001\u7ec8\u6b62\u503c\u4ee5\u53ca\u6b65\u957f\u3002\u8981\u751f\u6210\u5076\u6570\u5e8f\u5217\uff0c\u53ea\u9700\u5c06\u6b65\u957f\u8bbe\u7f6e\u4e3a2\uff0c\u5e76\u786e\u4fdd\u8d77\u59cb\u503c\u4e3a\u5076\u6570\u5373\u53ef\u3002\u4f8b\u5982\uff0c\u751f\u62100\u523010\u4e4b\u95f4\u7684\u5076\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for number in range(0, 11, 2):<\/p>\n<p>    print(number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>range(0, 11, 2)<\/code>\u4f1a\u751f\u6210\u5e8f\u5217<code>0, 2, 4, 6, 8, 10<\/code>\uff0c\u8fd9\u4e9b\u90fd\u662f\u5076\u6570\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u81ea\u5b9a\u4e49\u8303\u56f4<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u9700\u8981\u751f\u6210\u5176\u4ed6\u8303\u56f4\u5185\u7684\u5076\u6570\uff0c\u53ea\u9700\u8c03\u6574\u8d77\u59cb\u548c\u7ec8\u6b62\u53c2\u6570\u3002\u4f8b\u5982\uff0c\u751f\u621010\u523020\u4e4b\u95f4\u7684\u5076\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for number in range(10, 21, 2):<\/p>\n<p>    print(number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u6b64\u4f8b\u5b50\u4e2d\uff0c<code>range(10, 21, 2)<\/code>\u4f1a\u751f\u6210\u5e8f\u5217<code>10, 12, 14, 16, 18, 20<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u7ed3\u5408\u6761\u4ef6\u5224\u65ad\u8fdb\u884c\u8fc7\u6ee4<\/p>\n<\/p>\n<p><p>\u5373\u4f7f\u5728\u6ca1\u6709\u6b65\u957f\u53c2\u6570\u7684\u60c5\u51b5\u4e0b\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5bf9\u5e8f\u5217\u8fdb\u884c\u6761\u4ef6\u5224\u65ad\u6765\u7b5b\u9009\u51fa\u5076\u6570\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528for\u5faa\u73af\u7ed3\u5408\u6761\u4ef6\u5224\u65ad\u6765\u904d\u5386\u5217\u8868\u6216\u5176\u5b83\u5e8f\u5217\uff0c\u53ea\u5904\u7406\u5176\u4e2d\u7684\u5076\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for number in range(0, 11):<\/p>\n<p>    if number % 2 == 0:<\/p>\n<p>        print(number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>number % 2 == 0<\/code>\u7528\u4e8e\u5224\u65ad\u5f53\u524d\u6570\u5b57\u662f\u5426\u4e3a\u5076\u6570\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5e94\u7528\u4e8e\u5217\u8868<\/strong><\/p>\n<\/p>\n<p><p>\u5047\u8bbe\u4f60\u6709\u4e00\u4e2a\u5217\u8868\uff0c\u5176\u4e2d\u5305\u542b\u968f\u673a\u7684\u6574\u6570\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u76f8\u540c\u7684\u65b9\u6cd5\u7b5b\u9009\u51fa\u5076\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers = [3, 4, 7, 8, 12, 15, 18]<\/p>\n<p>for number in numbers:<\/p>\n<p>    if number % 2 == 0:<\/p>\n<p>        print(number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u5c06\u662f<code>4, 8, 12, 18<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u5229\u7528\u5217\u8868\u89e3\u6790\u8fdb\u884c\u904d\u5386<\/p>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\uff08List Comprehension\uff09\u662fPython\u4e2d\u4e00\u79cd\u7b80\u6d01\u800c\u5f3a\u5927\u7684\u521b\u5efa\u5217\u8868\u7684\u65b9\u6cd5\uff0c\u80fd\u591f\u4f7f\u4ee3\u7801\u66f4\u5177\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u89e3\u6790\u76f4\u63a5\u751f\u6210\u5076\u6570\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">even_numbers = [number for number in range(0, 11) if number % 2 == 0]<\/p>\n<p>print(even_numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u8f93\u51fa<code>[0, 2, 4, 6, 8, 10]<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u590d\u6742\u5e94\u7528<\/strong><\/p>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u8fd8\u53ef\u4ee5\u7528\u4e8e\u66f4\u590d\u6742\u7684\u573a\u666f\uff0c\u6bd4\u5982\u5728\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u7ef4\u5ea6\u7684\u7ed3\u6784\u4e2d\u7b5b\u9009\u5076\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]<\/p>\n<p>even_numbers = [num for row in matrix for num in row if num % 2 == 0]<\/p>\n<p>print(even_numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u5c06\u662f<code>[2, 4, 6, 8]<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5229\u7528\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u8fdb\u884c\u904d\u5386<\/p>\n<\/p>\n<p><p>\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u4e0e\u5217\u8868\u89e3\u6790\u7c7b\u4f3c\uff0c\u4f46\u5b83\u751f\u6210\u7684\u662f\u4e00\u4e2a\u751f\u6210\u5668\u5bf9\u8c61\uff0c\u800c\u4e0d\u662f\u5217\u8868\uff0c\u56e0\u6b64\u66f4\u8282\u7701\u5185\u5b58\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u904d\u5386\u5927\u6570\u636e\u96c6\u4e2d\u7684\u5076\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">even_numbers = (number for number in range(0, 11) if number % 2 == 0)<\/p>\n<p>for number in even_numbers:<\/p>\n<p>    print(number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u5728\u5904\u7406\u975e\u5e38\u5927\u7684\u6570\u636e\u96c6\u65f6\u5c24\u5176\u6709\u7528\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4f1a\u4e00\u6b21\u6027\u5c06\u6240\u6709\u6570\u636e\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0e\u51fd\u6570\u7ed3\u5408\u4f7f\u7528<\/strong><\/p>\n<\/p>\n<p><p>\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u4e5f\u53ef\u4ee5\u548c\u51fd\u6570\u7ed3\u5408\u4f7f\u7528\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def process_even_numbers(numbers):<\/p>\n<p>    for number in numbers:<\/p>\n<p>        print(f&quot;Processing {number}&quot;)<\/p>\n<p>even_numbers = (number for number in range(100) if number % 2 == 0)<\/p>\n<p>process_even_numbers(even_numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u7528\u4e8e\u6d41\u5f0f\u5904\u7406\u6570\u636e\uff0c\u800c\u4e0d\u5fc5\u4e00\u6b21\u6027\u5c06\u6240\u6709\u6570\u636e\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u4f7f\u7528<code>filter<\/code>\u51fd\u6570<\/p>\n<\/p>\n<p><p>Python\u7684<code>filter<\/code>\u51fd\u6570\u53ef\u4ee5\u4e0e<code>lambda<\/code>\u8868\u8fbe\u5f0f\u7ed3\u5408\u4f7f\u7528\uff0c\u6765\u8fc7\u6ee4\u5e8f\u5217\u4e2d\u7684\u5076\u6570\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p><code>filter<\/code>\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u8fed\u4ee3\u5668\uff0c\u53ef\u4ee5\u901a\u8fc7<code>list<\/code>\u51fd\u6570\u5c06\u5176\u8f6c\u6362\u4e3a\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">even_numbers = filter(lambda x: x % 2 == 0, range(0, 11))<\/p>\n<p>print(list(even_numbers))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u5c06\u662f<code>[0, 2, 4, 6, 8, 10]<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0e\u5176\u5b83\u51fd\u6570\u7ed3\u5408<\/strong><\/p>\n<\/p>\n<p><p><code>filter<\/code>\u51fd\u6570\u4e5f\u53ef\u4ee5\u4e0e\u5176\u5b83\u81ea\u5b9a\u4e49\u51fd\u6570\u7ed3\u5408\u4f7f\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def is_even(number):<\/p>\n<p>    return number % 2 == 0<\/p>\n<p>even_numbers = filter(is_even, range(0, 11))<\/p>\n<p>print(list(even_numbers))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5c06\u66f4\u591a\u590d\u6742\u7684\u903b\u8f91\u5c01\u88c5\u5230\u51fd\u6570\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u5728Python\u4e2d\u6709\u6548\u5730\u904d\u5386\u548c\u5904\u7406\u5076\u6570\u3002<strong>\u4f7f\u7528<code>range<\/code>\u51fd\u6570\u751f\u6210\u5076\u6570\u5e8f\u5217\u662f\u6700\u7b80\u5355\u76f4\u89c2\u7684\u65b9\u6cd5\uff0c\u7ed3\u5408\u6761\u4ef6\u5224\u65ad\u5219\u63d0\u4f9b\u4e86\u66f4\u5927\u7684\u7075\u6d3b\u6027\uff0c\u5217\u8868\u89e3\u6790\u548c\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u5219\u63d0\u4f9b\u4e86\u4ee3\u7801\u7684\u7b80\u6d01\u6027\u548c\u5185\u5b58\u6548\u7387\uff0c\u800c<code>filter<\/code>\u51fd\u6570\u5219\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7684\u53ef\u8bfb\u6027\u548c\u4ee3\u7801\u91cd\u7528\u6027\u3002<\/strong>\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u9002\u5408\u7684\u65b9\u6cd5\uff0c\u5c06\u5e2e\u52a9\u60a8\u5728Python\u7f16\u7a0b\u4e2d\u66f4\u9ad8\u6548\u5730\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u68c0\u67e5\u4e00\u4e2a\u6570\u5b57\u662f\u5426\u4e3a\u53cc\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u53d6\u6a21\u8fd0\u7b97\u7b26\uff08%\uff09\u6765\u68c0\u67e5\u4e00\u4e2a\u6570\u5b57\u662f\u5426\u4e3a\u53cc\u6570\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u5982\u679c\u4e00\u4e2a\u6570\u5b57\u5bf92\u53d6\u6a21\u7684\u7ed3\u679c\u4e3a0\uff0c\u90a3\u4e48\u5b83\u5c31\u662f\u53cc\u6570\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">number = 4\nif number % 2 == 0:\n    print(f&quot;{number} \u662f\u53cc\u6570&quot;)\nelse:\n    print(f&quot;{number} \u4e0d\u662f\u53cc\u6570&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u4efb\u4f55\u6574\u6570\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u904d\u5386\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u6570\u5b57\u7684\u5217\u8868\uff0c\u53ea\u83b7\u53d6\u53cc\u6570\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u6216\u8005\u5faa\u73af\u6765\u904d\u5386\u4e00\u4e2a\u6570\u5b57\u5217\u8868\u5e76\u7b5b\u9009\u51fa\u53cc\u6570\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">numbers = [1, 2, 3, 4, 5, 6]\neven_numbers = [num for num in numbers if num % 2 == 0]\nprint(even_numbers)  # \u8f93\u51fa: [2, 4, 6]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u7b80\u6d01\u9ad8\u6548\uff0c\u80fd\u591f\u5feb\u901f\u83b7\u53d6\u5217\u8868\u4e2d\u7684\u53cc\u6570\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528Python\u7684filter\u51fd\u6570\u6765\u63d0\u53d6\u53cc\u6570\uff1f<\/strong><br \/>filter\u51fd\u6570\u662fPython\u5185\u7f6e\u7684\u9ad8\u9636\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u4e8e\u7b5b\u9009\u7b26\u5408\u6761\u4ef6\u7684\u5143\u7d20\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528filter\u51fd\u6570\u63d0\u53d6\u53cc\u6570\u7684\u4f8b\u5b50\uff1a  <\/p>\n<pre><code class=\"language-python\">numbers = [1, 2, 3, 4, 5, 6]\neven_numbers = list(filter(lambda x: x % 2 == 0, numbers))\nprint(even_numbers)  # \u8f93\u51fa: [2, 4, 6]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u4f7f\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\uff0c\u5e76\u5229\u7528\u4e86\u51fd\u6570\u5f0f\u7f16\u7a0b\u7684\u4f18\u52bf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u53ea\u904d\u5386\u53cc\u6570\uff08\u5076\u6570\uff09\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528for\u5faa\u73af\u7ed3\u5408\u6761\u4ef6\u5224\u65ad\u3001\u5217\u8868\u89e3\u6790\u548c\u751f\u6210\u5668\u7b49\u65b9\u6cd5\u6765\u5b9e\u73b0\u3002\u53ef\u4ee5\u4f7f\u7528 [&hellip;]","protected":false},"author":3,"featured_media":957347,"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\/957346"}],"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=957346"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/957346\/revisions"}],"predecessor-version":[{"id":957348,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/957346\/revisions\/957348"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/957347"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=957346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=957346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=957346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}