{"id":298855,"date":"2024-05-20T17:02:47","date_gmt":"2024-05-20T09:02:47","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/298855.html"},"modified":"2024-05-20T17:03:02","modified_gmt":"2024-05-20T09:03:02","slug":"%e5%a6%82%e4%bd%95%e5%b0%86-for-%e5%be%aa%e7%8e%af%e6%94%b9%e4%b8%ba%e5%88%97%e8%a1%a8%e6%8e%a8%e5%af%bc%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/298855.html","title":{"rendered":"\u5982\u4f55\u5c06 for \u5faa\u73af\u6539\u4e3a\u5217\u8868\u63a8\u5bfc\u5f0f"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27150857\/7b38e3d9-1b5b-4766-a92f-c66c8fc06e65.webp\" alt=\"\u5982\u4f55\u5c06 for \u5faa\u73af\u6539\u4e3a\u5217\u8868\u63a8\u5bfc\u5f0f\" \/><\/p>\n<p><p><strong>\u5c06for\u5faa\u73af\u6539\u4e3a\u5217\u8868\u63a8\u5bfc\u5f0f\u7684\u65b9\u6cd5\u5305\u62ec\u8bc6\u522b\u8fed\u4ee3\u53d8\u91cf\u3001\u786e\u5b9a\u5e8f\u5217\u3001\u5bfb\u627e\u8f93\u51fa\u8868\u8fbe\u5f0f\uff0c\u4ee5\u53ca\u6dfb\u52a0\u6761\u4ef6\u5224\u65ad<\/strong>\u3002\u4e3a\u4e86\u66f4\u51c6\u786e\u5730\u8f6c\u6362\uff0c\u5e94\u8be5\u5148\u7406\u89e3for\u5faa\u73af\u7684\u7ed3\u6784\u3002<strong>for\u5faa\u73af\u901a\u5e38\u5305\u62ec\u521d\u59cb\u5316\u3001\u8fed\u4ee3\u6761\u4ef6\u3001\u8fed\u4ee3\u53d8\u91cf\u548c\u4e00\u4e2a\u6216\u591a\u4e2a\u5faa\u73af\u4f53\u8bed\u53e5<\/strong>\u3002\u800c\u5217\u8868\u63a8\u5bfc\u5f0f\u5219\u662f\u4e00\u79cd\u66f4\u7b80\u6d01\u7684\u8868\u8fbe\u65b9\u5f0f\uff0c\u5b83\u901a\u8fc7\u4e00\u4e2a\u8868\u8fbe\u5f0f\u6765\u521b\u5efa\u5217\u8868\uff0c\u53ef\u4ee5\u5305\u542b\u4e00\u4e2a\u6216\u591a\u4e2afor\u5b50\u53e5\uff0c\u540c\u65f6\u4e5f\u652f\u6301\u6761\u4ef6\u7b5b\u9009\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u987e\u540d\u601d\u4e49\uff0c\u4ee5\u4e0b\u7684for\u5faa\u73af\u53ef\u4ee5\u8f7b\u677e\u8f6c\u6362\u6210\u5217\u8868\u63a8\u5bfc\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">squared = []<\/p>\n<p>for x in range(10):<\/p>\n<p>    squared.append(x2)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5bf9\u5e94\u7684\u5217\u8868\u63a8\u5bfc\u5f0f\u5199\u4f5c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">squared = [x2 for x in range(10)]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\u4e2d\uff0c\u8fed\u4ee3\u53d8\u91cf\u662f<code>x<\/code>\uff0c\u5e8f\u5217\u662f<code>range(10)<\/code>\uff0c\u8f93\u51fa\u8868\u8fbe\u5f0f\u662f<code>x2<\/code>\u3002\u6ca1\u6709\u989d\u5916\u7684\u6761\u4ef6\u5224\u65ad\uff0c\u6240\u4ee5\u4e0d\u9700\u8981\u5728\u5217\u8868\u63a8\u5bfc\u5f0f\u4e2d\u6dfb\u52a0\u3002\u63a5\u4e0b\u6765\u6211\u4eec\u4f1a\u66f4\u6df1\u5165\u5730\u8ba8\u8bba\u8fd9\u4e9b\u8981\u7d20\uff0c\u5e76\u63cf\u8ff0\u5982\u4f55\u5728\u66f4\u590d\u6742\u7684\u60c5\u51b5\u4e0b\u5c06for\u5faa\u73af\u8f6c\u6362\u4e3a\u5217\u8868\u63a8\u5bfc\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u8bc6\u522b\u8fed\u4ee3\u53d8\u91cf\u4e0e\u5e8f\u5217<\/h3>\n<\/p>\n<p><p><strong>\u8fed\u4ee3\u53d8\u91cf\u662ffor\u5faa\u73af\u4e2d\u7528\u6765\u904d\u5386\u5e8f\u5217\u6216\u8fed\u4ee3\u5668\u7684\u53d8\u91cf<\/strong>\uff0c\u7406\u89e3\u5b83\u662f\u8f6c\u6362\u8fc7\u7a0b\u4e2d\u7684\u7b2c\u4e00\u6b65\u3002\u63a5\u7740\uff0c\u786e\u5b9a\u8fd9\u4e2a\u53d8\u91cf\u6240\u904d\u5386\u7684\u5e8f\u5217\u3002\u5e8f\u5217\u53ef\u4ee5\u662f\u4efb\u4f55\u8fed\u4ee3\u5bf9\u8c61\uff0c\u6bd4\u5982\u5217\u8868\u3001\u5143\u7ec4\u3001\u5b57\u7b26\u4e32\u6216\u751f\u6210\u5668\u3002\u5728for\u5faa\u73af\u4e2d\uff0c\u5e8f\u5217\u76f4\u63a5\u8ddf\u5728<code>in<\/code>\u5173\u952e\u5b57\u540e\u9762\u3002<\/p>\n<\/p>\n<p><p>\u5728\u5217\u8868\u63a8\u5bfc\u5f0f\u4e2d\uff0c\u8fd9\u90e8\u5206\u901a\u5e38\u653e\u7f6e\u5728\u6700\u672b\u5c3e\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># For\u5faa\u73af<\/p>\n<p>for item in iterable:<\/p>\n<p>    # do something with item<\/p>\n<h2><strong>\u5217\u8868\u63a8\u5bfc\u5f0f<\/strong><\/h2>\n<p>[item for item in iterable]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u786e\u5b9a\u8f93\u51fa\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u8f93\u51fa\u8868\u8fbe\u5f0f\u662f\u6307\u5728for\u5faa\u73af\u7684\u6bcf\u4e00\u6b21\u8fed\u4ee3\u4e2d\u5c06\u8981\u6267\u884c\u7684\u64cd\u4f5c\u3002<strong>\u5728\u5217\u8868\u63a8\u5bfc\u5f0f\u4e2d\uff0c\u8f93\u51fa\u8868\u8fbe\u5f0f\u4f4d\u4e8e\u6574\u4e2a\u8868\u8fbe\u5f0f\u7684\u6700\u524d\u7aef<\/strong>\u3002\u6709\u65f6\uff0c\u8f93\u51fa\u8868\u8fbe\u5f0f\u5f88\u7b80\u5355\uff0c\u6bd4\u5982\u4e0a\u9762\u4f8b\u5b50\u4e2d\u7684<code>x2<\/code>\u3002\u4f46\u6709\u65f6\u8f93\u51fa\u8868\u8fbe\u5f0f\u53ef\u80fd\u5305\u62ec\u51fd\u6570\u8c03\u7528\u3001\u8ba1\u7b97\u6216\u5176\u4ed6\u590d\u6742\u7684\u64cd\u4f5c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># For\u5faa\u73af<\/p>\n<p>result = []<\/p>\n<p>for x in iterable:<\/p>\n<p>    result.append(func(x)) # func \u662f\u67d0\u79cd\u64cd\u4f5c\u6216\u51fd\u6570<\/p>\n<h2><strong>\u5217\u8868\u63a8\u5bfc\u5f0f<\/strong><\/h2>\n<p>result = [func(x) for x in iterable]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u6dfb\u52a0\u6761\u4ef6\u5224\u65ad<\/h3>\n<\/p>\n<p><p>\u6761\u4ef6\u5224\u65ad\u5728for\u5faa\u73af\u4e2d\u4f5c\u4e3aif\u8bed\u53e5\u51fa\u73b0\uff0c\u51b3\u5b9a\u662f\u5426\u8981\u5bf9\u5f53\u524d\u7684\u8fed\u4ee3\u53d8\u91cf\u6267\u884c\u67d0\u4e9b\u64cd\u4f5c\u3002\u5728\u5217\u8868\u63a8\u5bfc\u5f0f\u4e2d\uff0c\u53ef\u4ee5\u6dfb\u52a0\u4e00\u4e2a\u6216\u591a\u4e2a\u6761\u4ef6\u5224\u65ad\u3002<strong>\u8fd9\u4e9b\u6761\u4ef6\u5224\u65ad\u4f4d\u4e8efor\u5faa\u73af\u4e4b\u540e\uff0c\u5bf9\u4e8e\u8f93\u51fa\u8868\u8fbe\u5f0f\u7684\u8ba1\u7b97\u6709\u8fc7\u6ee4\u4f5c\u7528<\/strong>\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># For\u5faa\u73af<\/p>\n<p>result = []<\/p>\n<p>for x in iterable:<\/p>\n<p>    if condition(x): # condition \u662f\u67d0\u4e2a\u8fd4\u56de\u5e03\u5c14\u503c\u7684\u6761\u4ef6<\/p>\n<p>        result.append(x)<\/p>\n<h2><strong>\u5217\u8868\u63a8\u5bfc\u5f0f<\/strong><\/h2>\n<p>result = [x for x in iterable if condition(x)]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u65f6\uff0c\u5982\u679c\u6761\u4ef6\u5224\u65ad\u6bd4\u8f83\u590d\u6742\u6216\u8005\u9700\u8981\u591a\u4e2a\u6761\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5706\u62ec\u53f7\u5305\u88f9\u8d77\u6765\uff0c\u6216\u8005\u901a\u8fc7\u903b\u8f91\u8fd0\u7b97\u7b26\uff08\u5982<code>and<\/code>\u548c<code>or<\/code>\uff09\u8fde\u63a5\u591a\u4e2a\u6761\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5904\u7406\u5d4c\u5957for\u5faa\u73af<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u751a\u81f3\u53ef\u4ee5\u5904\u7406\u5d4c\u5957\u7684for\u5faa\u73af\u3002\u5728for\u5faa\u73af\u4e2d\u7684\u5d4c\u5957\u7ed3\u6784\u53ef\u4ee5\u5e73\u94fa\u76f4\u53d9\u5730\u8f6c\u6362\u6210\u5217\u8868\u63a8\u5bfc\u5f0f\u4e2d\u7684\u591a\u4e2afor\u5b50\u53e5\u3002<strong>\u5173\u952e\u662f\u8981\u4fdd\u6301\u8fed\u4ee3\u7684\u987a\u5e8f<\/strong>\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># For\u5faa\u73af\u5d4c\u5957<\/p>\n<p>result = []<\/p>\n<p>for x in iterable1:<\/p>\n<p>    for y in iterable2:<\/p>\n<p>        if condition(x, y): <\/p>\n<p>            result.append((x, y))<\/p>\n<h2><strong>\u5217\u8868\u63a8\u5bfc\u5f0f<\/strong><\/h2>\n<p>result = [(x, y) for x in iterable1 for y in iterable2 if condition(x, y)]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5217\u8868\u63a8\u5bfc\u5f0f\u867d\u7136\u63d0\u4f9b\u4e86\u7b80\u6d01\u7684\u8bed\u6cd5\uff0c\u4f46\u5e76\u4e0d\u603b\u662f\u6700\u4f18\u7684\u9009\u62e9\u3002\u5c24\u5176\u662f\u5f53for\u5faa\u73af\u975e\u5e38\u590d\u6742\u6216\u63a8\u5bfc\u5f0f\u53d8\u5f97\u96be\u4ee5\u9605\u8bfb\u65f6\uff0c\u4f7f\u7528\u666e\u901a\u7684for\u5faa\u73af\u53ef\u80fd\u4f1a\u66f4\u6613\u4e8e\u7406\u89e3\u3002\u6b64\u5916\uff0c\u8fc7\u4e8e\u590d\u6742\u7684\u5217\u8868\u63a8\u5bfc\u5f0f\u53ef\u80fd\u5bfc\u81f4\u53ef\u7ef4\u62a4\u6027\u964d\u4f4e\uff0c\u800c\u4e14\u5728\u4f7f\u7528\u5927\u6570\u636e\u96c6\u65f6\u53ef\u80fd\u4f1a\u6bd4\u8f83\u6d88\u8017\u5185\u5b58\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u6ce8\u610f\u6027\u80fd\u4e0e\u53ef\u8bfb\u6027<\/h3>\n<\/p>\n<p><p>\u867d\u7136\u5217\u8868\u63a8\u5bfc\u5f0f\u901a\u5e38\u6bd4\u5bf9\u7b49\u7684for\u5faa\u73af\u6267\u884c\u5f97\u66f4\u5feb\uff0c\u4f46\u6709\u65f6\u4e3a\u4e86\u7ef4\u6301\u4ee3\u7801\u7684\u6e05\u6670\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0c\u53ef\u80fd\u9700\u8981\u727a\u7272\u4e00\u70b9\u6027\u80fd\u3002<strong>\u590d\u6742\u7684\u903b\u8f91\u5982\u679c\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u8868\u8fbe\uff0c\u4f1a\u4f7f\u5f97\u4ee3\u7801\u96be\u4ee5\u9605\u8bfb\u548c\u7406\u89e3<\/strong>\u3002\u56e0\u6b64\uff0c\u5982\u679c\u9047\u5230\u8fc7\u4e8e\u590d\u6742\u7684\u63a8\u5bfc\u5f0f\uff0c\u6700\u597d\u8fd8\u662f\u5206\u89e3\u4e3a\u51e0\u4e2a\u7b80\u5355\u7684\u6b65\u9aa4\uff0c\u6216\u8005\u4fdd\u7559\u4e3afor\u5faa\u73af\u3002\u540c\u65f6\uff0c\u5bf9\u4e8e\u975e\u5e38\u5927\u7684\u6570\u636e\u96c6\uff0c\u5217\u8868\u63a8\u5bfc\u5f0f\u53ef\u80fd\u4f1a\u521b\u5efa\u5927\u91cf\u7684\u4e34\u65f6\u53d8\u91cf\uff0c\u4ece\u800c\u6d88\u8017\u5927\u91cf\u5185\u5b58\uff0c\u8fd9\u65f6\u53ef\u80fd\u9700\u8981\u8003\u8651\u4f7f\u7528\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u6765\u66ff\u4ee3\u3002<\/p>\n<\/p>\n<p><p>\u603b\u4e4b\uff0c\u5c06for\u5faa\u73af\u8f6c\u4e3a\u5217\u8868\u63a8\u5bfc\u5f0f\u53ef\u4ee5\u8ba9\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u548c\u9ad8\u6548\uff0c\u4f46\u4e5f\u8981\u6ce8\u610f\u5e73\u8861\u53ef\u8bfb\u6027\u548c\u6027\u80fd\u3002\u5f53\u4ee3\u7801\u5757\u8fc7\u4e8e\u590d\u6742\u6216\u6570\u636e\u96c6\u5f88\u5927\u65f6\uff0c\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\u53ef\u80fd\u4f1a\u66f4\u5408\u9002\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>Q: \u5982\u4f55\u5c06\u5faa\u73af\u8bed\u53e5\u8f6c\u6362\u4e3a\u5217\u8868\u63a8\u5bfc\u5f0f\uff1f<\/strong><\/p>\n<p><strong>A: \u4ec0\u4e48\u662f\u5217\u8868\u63a8\u5bfc\u5f0f\uff1f<\/strong><br \/>\n\u5217\u8868\u63a8\u5bfc\u5f0f\u662f\u4e00\u79cd\u4fbf\u6377\u7684\u8bed\u6cd5\u5f62\u5f0f\uff0c\u53ef\u4ee5\u5c06\u4e00\u79cd\u6570\u636e\u7ed3\u6784\uff08\u901a\u5e38\u662f\u5217\u8868\uff09\u8f6c\u6362\u4e3a\u53e6\u4e00\u79cd\u5f62\u5f0f\u3002\u5b83\u57fa\u4e8e\u73b0\u6709\u7684\u5217\u8868\uff0c\u5e76\u4f7f\u7528\u7b80\u6d01\u660e\u4e86\u7684\u8bed\u6cd5\u751f\u6210\u65b0\u7684\u5217\u8868\u3002<\/p>\n<p><strong>Q: \u5982\u4f55\u5c06 for \u5faa\u73af\u6539\u5199\u6210\u5217\u8868\u63a8\u5bfc\u5f0f\uff1f<\/strong><\/p>\n<p><strong>A: \u4e3e\u4e2a\u4f8b\u5b50\u8bf4\u660e\u4e00\u4e0b\u5427\uff1a<\/strong><br \/>\n\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u5305\u542b\u6570\u5b57\u7684\u5217\u8868\uff0c\u60f3\u8981\u6c42\u51fa\u6bcf\u4e2a\u6570\u5b57\u7684\u5e73\u65b9\u540e\u7684\u7ed3\u679c\u3002\u4f7f\u7528\u4f20\u7edf\u7684 for \u5faa\u73af\u53ef\u4ee5\u8fd9\u6837\u5b9e\u73b0\uff1a<\/p>\n<pre><code class=\"language-python\">numbers = [1, 2, 3, 4, 5]\nsquares = []\n\nfor num in numbers:\n    squares.append(num * num)\n\nprint(squares)  # \u8f93\u51fa\u7ed3\u679c\u4e3a [1, 4, 9, 16, 25]\n<\/code><\/pre>\n<p>\u800c\u901a\u8fc7\u5217\u8868\u63a8\u5bfc\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u4e0a\u8ff0\u8fc7\u7a0b\u7b80\u5316\u4e3a\u4e00\u884c\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">numbers = [1, 2, 3, 4, 5]\nsquares = [num * num for num in numbers]\n\nprint(squares)  \n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u5217\u8868\u63a8\u5bfc\u5f0f\u4e0e\u4f20\u7edf\u7684 for \u5faa\u73af\u5b9e\u9645\u4e0a\u662f\u7b49\u4ef7\u7684\u3002<\/p>\n<p><strong>Q: \u5217\u8868\u63a8\u5bfc\u5f0f\u6709\u4ec0\u4e48\u4f18\u70b9\uff1f<\/strong><\/p>\n<p><strong>A: \u5217\u8868\u63a8\u5bfc\u5f0f\u7684\u4f18\u70b9\u6709\u54ea\u4e9b\u5462\uff1f<\/strong><br \/>\n\u5217\u8868\u63a8\u5bfc\u5f0f\u5177\u6709\u7b80\u6d01\u660e\u4e86\u7684\u8bed\u6cd5\uff0c\u53ef\u4ee5\u4f7f\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u548c\u6613\u8bfb\u3002\u540c\u65f6\uff0c\u5b83\u8fd8\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u4ee3\u7801\u7684\u6267\u884c\u6548\u7387\u3002\u7531\u4e8e\u5217\u8868\u63a8\u5bfc\u5f0f\u662f\u901a\u8fc7\u5e95\u5c42\u7684\u5faa\u73af\u5b9e\u73b0\u7684\uff0c\u56e0\u6b64\u53ef\u4ee5\u901a\u8fc7\u6d88\u9664\u5faa\u73af\u8bed\u53e5\u7684\u5f00\u9500\u6765\u52a0\u901f\u4ee3\u7801\u6267\u884c\u3002\u5728\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\uff0c\u5217\u8868\u63a8\u5bfc\u5f0f\u53ef\u4ee5\u63d0\u4f9b\u663e\u8457\u7684\u6027\u80fd\u4f18\u52bf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5c06for\u5faa\u73af\u6539\u4e3a\u5217\u8868\u63a8\u5bfc\u5f0f\u7684\u65b9\u6cd5\u5305\u62ec\u8bc6\u522b\u8fed\u4ee3\u53d8\u91cf\u3001\u786e\u5b9a\u5e8f\u5217\u3001\u5bfb\u627e\u8f93\u51fa\u8868\u8fbe\u5f0f\uff0c\u4ee5\u53ca\u6dfb\u52a0\u6761\u4ef6\u5224\u65ad\u3002\u4e3a\u4e86\u66f4\u51c6\u786e\u5730\u8f6c\u6362 [&hellip;]","protected":false},"author":3,"featured_media":298872,"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\/298855"}],"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=298855"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/298855\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/298872"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=298855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=298855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=298855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}