{"id":1010255,"date":"2024-12-27T11:19:18","date_gmt":"2024-12-27T03:19:18","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1010255.html"},"modified":"2024-12-27T11:19:20","modified_gmt":"2024-12-27T03:19:20","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%be%97%e5%88%b0%e7%b4%a2%e5%bc%95","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1010255.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u5f97\u5230\u7d22\u5f15"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084848\/1777b8bb-6395-4a9b-b2d3-f15872892f8e.webp\" alt=\"python\u4e2d\u5982\u4f55\u5f97\u5230\u7d22\u5f15\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u83b7\u53d6\u7d22\u5f15\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4f8b\u5982\u4f7f\u7528enumerate()\u51fd\u6570\u3001\u901a\u8fc7\u5217\u8868\u7684index()\u65b9\u6cd5\u3001\u5229\u7528NumPy\u5e93\u7b49\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528enumerate()\u662f\u6700\u7b80\u5355\u4e14\u901a\u7528\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u8f7b\u677e\u5730\u8fed\u4ee3\u5217\u8868\u5e76\u83b7\u53d6\u7d22\u5f15\u548c\u503c\u3002<\/strong>\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u5e76\u7ed9\u51fa\u4f7f\u7528\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001ENUMERATE()\u51fd\u6570<\/p>\n<\/p>\n<p><p><code>enumerate()<\/code>\u51fd\u6570\u662fPython\u5185\u7f6e\u7684\u4e00\u4e2a\u975e\u5e38\u6709\u7528\u7684\u51fd\u6570\uff0c\u5b83\u5141\u8bb8\u4f60\u5728\u904d\u5386\u4e00\u4e2a\u5217\u8868\u7684\u540c\u65f6\u83b7\u53d6\u6bcf\u4e2a\u5143\u7d20\u7684\u7d22\u5f15\u3002\u5b83\u8fd4\u56de\u7684\u662f\u4e00\u4e2a\u5305\u542b\u7d22\u5f15\u548c\u503c\u7684\u5143\u7ec4\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528\u65b9\u6cd5<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u5728for\u5faa\u73af\u4e2d\u4f7f\u7528<code>enumerate()<\/code>\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u83b7\u53d6\u5230\u5217\u8868\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u53ca\u5176\u5bf9\u5e94\u7684\u7d22\u5f15\u3002<code>enumerate()<\/code>\u7684\u8bed\u6cd5\u4e3a\uff1a<code>enumerate(iterable, start=0)<\/code>\uff0c\u5176\u4e2d<code>iterable<\/code>\u662f\u4e00\u4e2a\u53ef\u8fed\u4ee3\u5bf9\u8c61\uff0c<code>start<\/code>\u662f\u7d22\u5f15\u7684\u8d77\u59cb\u503c\uff0c\u9ed8\u8ba4\u4e3a0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">fruits = [&#39;apple&#39;, &#39;banana&#39;, &#39;cherry&#39;]<\/p>\n<p>for index, fruit in enumerate(fruits):<\/p>\n<p>    print(index, fruit)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>enumerate()<\/code>\u51fd\u6570\u5e2e\u52a9\u6211\u4eec\u5728\u904d\u5386<code>fruits<\/code>\u5217\u8868\u65f6\uff0c\u540c\u65f6\u83b7\u53d6\u5143\u7d20\u53ca\u5176\u7d22\u5f15\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u5e94\u7528\u573a\u666f<\/li>\n<\/ol>\n<p><p><code>enumerate()<\/code>\u975e\u5e38\u9002\u5408\u7528\u4e8e\u9700\u8981\u540c\u65f6\u8bbf\u95ee\u5143\u7d20\u53ca\u5176\u7d22\u5f15\u7684\u573a\u666f\u3002\u6bd4\u5982\u5f53\u4f60\u60f3\u5728\u904d\u5386\u5217\u8868\u65f6\u4fee\u6539\u5176\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528<code>enumerate()<\/code>\u6765\u83b7\u53d6\u7d22\u5f15\u4ece\u800c\u76f4\u63a5\u8fdb\u884c\u4fee\u6539\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5217\u8868\u7684INDEX()\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u53ea\u60f3\u83b7\u53d6\u67d0\u4e2a\u7279\u5b9a\u5143\u7d20\u7684\u7d22\u5f15\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u7684<code>index()<\/code>\u65b9\u6cd5\u3002<code>index()<\/code>\u65b9\u6cd5\u4f1a\u8fd4\u56de\u5217\u8868\u4e2d\u67d0\u4e2a\u503c\u7684\u7b2c\u4e00\u4e2a\u5339\u914d\u9879\u7684\u7d22\u5f15\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528\u65b9\u6cd5<\/li>\n<\/ol>\n<p><p>\u8bed\u6cd5\u4e3a\uff1a<code>list.index(element, start, end)<\/code>\uff0c\u5176\u4e2d<code>element<\/code>\u662f\u4f60\u8981\u67e5\u627e\u7684\u5143\u7d20\uff0c<code>start<\/code>\u548c<code>end<\/code>\u662f\u53ef\u9009\u53c2\u6570\uff0c\u6307\u5b9a\u8981\u641c\u7d22\u7684\u8303\u56f4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">fruits = [&#39;apple&#39;, &#39;banana&#39;, &#39;cherry&#39;]<\/p>\n<p>index_of_banana = fruits.index(&#39;banana&#39;)<\/p>\n<p>print(index_of_banana)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>index()<\/code>\u65b9\u6cd5\u8fd4\u56de\u4e86<code>banana<\/code>\u5728<code>fruits<\/code>\u5217\u8868\u4e2d\u7684\u7d22\u5f15<code>1<\/code>\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u6ce8\u610f\u4e8b\u9879<\/li>\n<\/ol>\n<p><p>\u5f53\u5217\u8868\u4e2d\u6709\u91cd\u590d\u5143\u7d20\u65f6\uff0c<code>index()<\/code>\u53ea\u4f1a\u8fd4\u56de\u7b2c\u4e00\u4e2a\u5339\u914d\u9879\u7684\u7d22\u5f15\u3002\u6b64\u5916\uff0c\u5982\u679c\u5143\u7d20\u4e0d\u5b58\u5728\u4e8e\u5217\u8868\u4e2d\uff0c<code>index()<\/code>\u4f1a\u629b\u51fa<code>ValueError<\/code>\uff0c\u6240\u4ee5\u5728\u4f7f\u7528\u4e4b\u524d\u6700\u597d\u786e\u4fdd\u5143\u7d20\u5728\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528NumPy\u5e93<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u6570\u636e\u5904\u7406\u9700\u6c42\uff0cPython\u7684NumPy\u5e93\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u83b7\u53d6\u6570\u7ec4\u4e2d\u7684\u7d22\u5f15\u3002NumPy\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5e93\uff0c\u4e13\u4e3a\u5904\u7406\u5927\u89c4\u6a21\u591a\u7ef4\u6570\u7ec4\u548c\u77e9\u9635\u800c\u8bbe\u8ba1\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528\u65b9\u6cd5<\/li>\n<\/ol>\n<p><p>NumPy\u7684<code>where()<\/code>\u51fd\u6570\u53ef\u4ee5\u5e2e\u52a9\u4f60\u627e\u5230\u6ee1\u8db3\u67d0\u4e2a\u6761\u4ef6\u7684\u5143\u7d20\u7684\u7d22\u5f15\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>arr = np.array([10, 20, 30, 40, 50])<\/p>\n<p>indices = np.where(arr &gt; 20)<\/p>\n<p>print(indices)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>np.where(arr &gt; 20)<\/code>\u8fd4\u56de\u7684\u662f\u4e00\u4e2a\u5143\u7ec4\uff0c\u5305\u542b\u6ee1\u8db3\u6761\u4ef6\u7684\u5143\u7d20\u7684\u7d22\u5f15\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u5e94\u7528\u573a\u666f<\/li>\n<\/ol>\n<p><p>NumPy\u7684<code>where()<\/code>\u51fd\u6570\u975e\u5e38\u9002\u5408\u7528\u4e8e\u9700\u8981\u5bf9\u5927\u89c4\u6a21\u6570\u7ec4\u8fdb\u884c\u6761\u4ef6\u8fc7\u6ee4\u7684\u573a\u666f\u3002\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u8fd4\u56de\u7d22\u5f15\uff0c\u8fd8\u53ef\u4ee5\u76f4\u63a5\u7528\u4e8e\u751f\u6210\u65b0\u7684\u6570\u7ec4\uff0c\u63d0\u4f9b\u975e\u5e38\u9ad8\u6548\u7684\u6570\u636e\u5904\u7406\u80fd\u529b\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001DICT\u7684KEYS()\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5728\u5904\u7406\u5b57\u5178\uff08dict\uff09\u800c\u4e0d\u662f\u5217\u8868\u65f6\uff0c\u9700\u8981\u83b7\u53d6\u952e\u7684\u7d22\u5f15\uff0c\u53ef\u4ee5\u901a\u8fc7\u952e\u5217\u8868\u548c\u7d22\u5f15\u7684\u7ec4\u5408\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528\u65b9\u6cd5<\/li>\n<\/ol>\n<p><p>\u9996\u5148\u83b7\u53d6\u5b57\u5178\u7684\u952e\u5217\u8868\uff0c\u7136\u540e\u901a\u8fc7\u5217\u8868\u7684<code>index()<\/code>\u65b9\u6cd5\u627e\u5230\u7d22\u5f15\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">fruit_prices = {&#39;apple&#39;: 1.5, &#39;banana&#39;: 0.8, &#39;cherry&#39;: 2.2}<\/p>\n<p>keys = list(fruit_prices.keys())<\/p>\n<p>index_of_banana = keys.index(&#39;banana&#39;)<\/p>\n<p>print(index_of_banana)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5148\u5c06\u5b57\u5178\u7684\u952e\u8f6c\u6362\u4e3a\u5217\u8868\uff0c\u7136\u540e\u4f7f\u7528<code>index()<\/code>\u65b9\u6cd5\u83b7\u53d6\u952e<code>&#39;banana&#39;<\/code>\u7684\u7d22\u5f15\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u6ce8\u610f\u4e8b\u9879<\/li>\n<\/ol>\n<p><p>\u5b57\u5178\u672c\u8d28\u4e0a\u662f\u65e0\u5e8f\u7684\uff0c\u5728\u67d0\u4e9bPython\u7248\u672c\u4e2d\uff0c\u5b57\u5178\u4fdd\u7559\u63d2\u5165\u987a\u5e8f\uff0c\u56e0\u6b64\u5728\u83b7\u53d6\u7d22\u5f15\u65f6\uff0c\u9700\u786e\u4fdd\u5b57\u5178\u672a\u88ab\u4fee\u6539\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001PANDAS\u5e93<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u6570\u636e\u8868\u65f6\uff0cPandas\u5e93\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u529f\u80fd\u6765\u83b7\u53d6\u7d22\u5f15\uff0c\u5c24\u5176\u662f\u5728\u6570\u636e\u5206\u6790\u548c\u6570\u636e\u5904\u7406\u9886\u57df\u4e2d\u5e7f\u6cdb\u4f7f\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528\u65b9\u6cd5<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528<code>pandas<\/code>\u4e2d\u7684<code>DataFrame<\/code>\u5bf9\u8c61\uff0c\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u884c\u6216\u5217\u7684\u7d22\u5f15\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>data = {&#39;fruit&#39;: [&#39;apple&#39;, &#39;banana&#39;, &#39;cherry&#39;], &#39;price&#39;: [1.5, 0.8, 2.2]}<\/p>\n<p>df = pd.DataFrame(data)<\/p>\n<p>index = df.index[df[&#39;fruit&#39;] == &#39;banana&#39;].tolist()<\/p>\n<p>print(index)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cPandas\u7684<code>DataFrame<\/code>\u5bf9\u8c61\u5e2e\u52a9\u6211\u4eec\u5728\u6570\u636e\u8868\u4e2d\u67e5\u627e\u67d0\u4e2a\u6761\u4ef6\u7684\u7d22\u5f15\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u5e94\u7528\u573a\u666f<\/li>\n<\/ol>\n<p><p>Pandas\u975e\u5e38\u9002\u5408\u5904\u7406\u7ed3\u6784\u5316\u6570\u636e\uff0c\u4f8b\u5982CSV\u6587\u4ef6\u3001\u6570\u636e\u5e93\u5bfc\u51fa\u7684\u6570\u636e\u7b49\u3002\u901a\u8fc7\u5176\u4e30\u5bcc\u7684API\uff0c\u7528\u6237\u53ef\u4ee5\u65b9\u4fbf\u5730\u5bf9\u6570\u636e\u8fdb\u884c\u7d22\u5f15\u3001\u8fc7\u6ee4\u3001\u5206\u7ec4\u7b49\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u83b7\u53d6\u7d22\u5f15\u7684\u65b9\u5f0f\u591a\u79cd\u591a\u6837\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u9002\u5408\u7684\u65b9\u6cd5\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u5217\u8868\u904d\u5386\uff0c<code>enumerate()<\/code>\u662f\u6700\u76f4\u63a5\u6709\u6548\u7684\u65b9\u6cd5\uff1b\u5f53\u9700\u8981\u67e5\u627e\u7279\u5b9a\u5143\u7d20\u65f6\uff0c<code>index()<\/code>\u65b9\u6cd5\u975e\u5e38\u65b9\u4fbf\uff1b\u5bf9\u4e8e\u5904\u7406\u5927\u89c4\u6a21\u6570\u7ec4\u6570\u636e\uff0cNumPy\u5e93\u7684<code>where()<\/code>\u51fd\u6570\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u529f\u80fd\uff1b\u800c\u5728\u5904\u7406\u6570\u636e\u8868\u65f6\uff0cPandas\u5e93\u5219\u662f\u4e00\u4e2a\u4e0d\u53ef\u6216\u7f3a\u7684\u5de5\u5177\u3002\u7406\u89e3\u5e76\u5408\u7406\u5e94\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8Python\u6570\u636e\u5904\u7406\u7684\u6548\u7387\u548c\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u901a\u8fc7\u503c\u83b7\u53d6\u5217\u8868\u7684\u7d22\u5f15\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>list.index(value)<\/code>\u65b9\u6cd5\u6765\u83b7\u53d6\u67d0\u4e2a\u503c\u5728\u5217\u8868\u4e2d\u7684\u7d22\u5f15\u3002\u5982\u679c\u8be5\u503c\u5728\u5217\u8868\u4e2d\u51fa\u73b0\u591a\u6b21\uff0c<code>index<\/code>\u65b9\u6cd5\u5c06\u8fd4\u56de\u9996\u6b21\u51fa\u73b0\u7684\u7d22\u5f15\u3002\u5982\u679c\u8be5\u503c\u4e0d\u5b58\u5728\u4e8e\u5217\u8868\u4e2d\uff0c\u5c06\u5f15\u53d1<code>ValueError<\/code>\u5f02\u5e38\u3002\u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u53ef\u4ee5\u5148\u4f7f\u7528<code>in<\/code>\u8fd0\u7b97\u7b26\u68c0\u67e5\u503c\u662f\u5426\u5b58\u5728\u4e8e\u5217\u8868\u4e2d\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u83b7\u53d6\u5b57\u5178\u4e2d\u7684\u952e\u7684\u7d22\u5f15\uff1f<\/strong><br \/>\u5b57\u5178\u662f\u65e0\u5e8f\u7684\uff0c\u6240\u4ee5\u5b83\u6ca1\u6709\u76f4\u63a5\u7684\u7d22\u5f15\u6982\u5ff5\u3002\u4e0d\u8fc7\uff0c\u53ef\u4ee5\u901a\u8fc7\u5c06\u5b57\u5178\u7684\u952e\u8f6c\u6362\u4e3a\u5217\u8868\u6765\u5b9e\u73b0\u7d22\u5f15\u83b7\u53d6\u3002\u4f7f\u7528<code>list(dict.keys())<\/code>\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u952e\u7684\u5217\u8868\uff0c\u4ece\u800c\u901a\u8fc7\u7d22\u5f15\u8bbf\u95ee\u7279\u5b9a\u7684\u952e\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5b57\u5178\u7684\u987a\u5e8f\u5728Python 3.7\u53ca\u4ee5\u540e\u7248\u672c\u662f\u4fdd\u7559\u7684\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u4f7f\u7528enumerate\u83b7\u53d6\u7d22\u5f15\u548c\u5143\u7d20\uff1f<\/strong><br \/>\u4f7f\u7528<code>enumerate()<\/code>\u51fd\u6570\u53ef\u4ee5\u540c\u65f6\u83b7\u53d6\u5217\u8868\u4e2d\u5143\u7d20\u7684\u7d22\u5f15\u548c\u503c\u3002\u8be5\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u53ef\u679a\u4e3e\u7684\u5bf9\u8c61\uff0c\u5305\u542b\u6bcf\u4e2a\u5143\u7d20\u7684\u7d22\u5f15\u53ca\u5176\u5bf9\u5e94\u7684\u503c\u3002\u901a\u8fc7<code>for index, value in enumerate(your_list)<\/code>\u8bed\u6cd5\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u5728\u5faa\u73af\u4e2d\u8bbf\u95ee\u7d22\u5f15\u548c\u5143\u7d20\u3002\u8fd9\u6837\u53ef\u4ee5\u4f7f\u4ee3\u7801\u66f4\u52a0\u6e05\u6670\uff0c\u63d0\u9ad8\u53ef\u8bfb\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u83b7\u53d6\u7d22\u5f15\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4f8b\u5982\u4f7f\u7528enumerate()\u51fd\u6570\u3001\u901a\u8fc7\u5217\u8868\u7684index()\u65b9\u6cd5\u3001\u5229\u7528N [&hellip;]","protected":false},"author":3,"featured_media":1010262,"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\/1010255"}],"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=1010255"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1010255\/revisions"}],"predecessor-version":[{"id":1010263,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1010255\/revisions\/1010263"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1010262"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1010255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1010255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1010255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}