{"id":1039892,"date":"2024-12-31T12:36:36","date_gmt":"2024-12-31T04:36:36","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1039892.html"},"modified":"2024-12-31T12:36:40","modified_gmt":"2024-12-31T04:36:40","slug":"python%e4%b8%80%e7%bb%b4%e6%97%a0%e5%ba%8f%e6%95%b0%e6%8d%ae%e5%a6%82%e4%bd%95%e8%a1%a8%e8%be%be","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1039892.html","title":{"rendered":"python\u4e00\u7ef4\u65e0\u5e8f\u6570\u636e\u5982\u4f55\u8868\u8fbe"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/37106cf0-cea2-405a-bc59-207065ede3f8.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u4e00\u7ef4\u65e0\u5e8f\u6570\u636e\u5982\u4f55\u8868\u8fbe\" \/><\/p>\n<p><p> <strong>Python \u4e00\u7ef4\u65e0\u5e8f\u6570\u636e\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u3001\u96c6\u5408\u3001\u5b57\u5178\u6765\u8868\u8fbe<\/strong>\uff0c\u5176\u4e2d\uff0c\u5217\u8868\u9002\u7528\u4e8e\u9700\u8981\u4fdd\u7559\u6570\u636e\u987a\u5e8f\u7684\u60c5\u51b5\uff0c\u96c6\u5408\u9002\u7528\u4e8e\u9700\u8981\u79fb\u9664\u91cd\u590d\u6570\u636e\u4e14\u4e0d\u5173\u5fc3\u987a\u5e8f\u7684\u60c5\u51b5\uff0c\u5b57\u5178\u9002\u7528\u4e8e\u9700\u8981\u5b58\u50a8\u952e\u503c\u5bf9\u7684\u60c5\u51b5\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u51e0\u79cd\u6570\u636e\u7ed3\u6784\u7684\u7279\u6027\u548c\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5217\u8868\uff08List\uff09<\/h3>\n<\/p>\n<p><h4>1. \u5217\u8868\u7684\u5b9a\u4e49\u548c\u7279\u70b9<\/h4>\n<\/p>\n<p><p>Python \u5217\u8868\u662f\u4e00\u79cd\u6709\u5e8f\u7684\u96c6\u5408\uff0c\u53ef\u4ee5\u5305\u542b\u4efb\u610f\u7c7b\u578b\u7684\u5143\u7d20\u3002\u5217\u8868\u4e2d\u7684\u5143\u7d20\u53ef\u4ee5\u91cd\u590d\uff0c\u4e14\u53ef\u4ee5\u901a\u8fc7\u7d22\u5f15\u8bbf\u95ee\u3002\u5217\u8868\u662f\u52a8\u6001\u6570\u7ec4\uff0c\u5176\u957f\u5ea6\u53ef\u4ee5\u53d8\u5316\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u5217\u8868<\/p>\n<p>data_list = [1, 3, 5, 7, 9]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5217\u8868\u7684\u5e38\u7528\u64cd\u4f5c<\/h4>\n<\/p>\n<ul>\n<li><strong>\u6dfb\u52a0\u5143\u7d20<\/strong>\uff1a\u4f7f\u7528 <code>append()<\/code> \u65b9\u6cd5\u5728\u5217\u8868\u672b\u5c3e\u6dfb\u52a0\u5143\u7d20\u3002<\/li>\n<li><strong>\u63d2\u5165\u5143\u7d20<\/strong>\uff1a\u4f7f\u7528 <code>insert()<\/code> \u65b9\u6cd5\u5728\u6307\u5b9a\u4f4d\u7f6e\u63d2\u5165\u5143\u7d20\u3002<\/li>\n<li><strong>\u5220\u9664\u5143\u7d20<\/strong>\uff1a\u4f7f\u7528 <code>remove()<\/code> \u65b9\u6cd5\u5220\u9664\u6307\u5b9a\u5143\u7d20\uff0c\u4f7f\u7528 <code>pop()<\/code> \u65b9\u6cd5\u5220\u9664\u6307\u5b9a\u4f4d\u7f6e\u7684\u5143\u7d20\u3002<\/li>\n<li><strong>\u8bbf\u95ee\u5143\u7d20<\/strong>\uff1a\u4f7f\u7528\u7d22\u5f15\u8bbf\u95ee\u5217\u8868\u4e2d\u7684\u5143\u7d20\u3002<\/li>\n<li><strong>\u5207\u7247\u64cd\u4f5c<\/strong>\uff1a\u901a\u8fc7\u5207\u7247\u83b7\u53d6\u5b50\u5217\u8868\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\"># \u6dfb\u52a0\u5143\u7d20<\/p>\n<p>data_list.append(11)<\/p>\n<h2><strong>\u63d2\u5165\u5143\u7d20<\/strong><\/h2>\n<p>data_list.insert(2, 4)<\/p>\n<h2><strong>\u5220\u9664\u5143\u7d20<\/strong><\/h2>\n<p>data_list.remove(7)<\/p>\n<h2><strong>\u8bbf\u95ee\u5143\u7d20<\/strong><\/h2>\n<p>element = data_list[1]<\/p>\n<h2><strong>\u5207\u7247\u64cd\u4f5c<\/strong><\/h2>\n<p>sub_list = data_list[1:3]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5217\u8868\u7684\u5e94\u7528\u573a\u666f<\/h4>\n<\/p>\n<p><p>\u5217\u8868\u9002\u7528\u4e8e\u9700\u8981\u5b58\u50a8\u6709\u5e8f\u6570\u636e\u5e76\u9891\u7e41\u8fdb\u884c\u589e\u5220\u64cd\u4f5c\u7684\u573a\u666f\uff0c\u6bd4\u5982\u5b58\u50a8\u4e00\u7ec4\u5b66\u751f\u7684\u6210\u7ee9\u3001\u5546\u54c1\u5217\u8868\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u96c6\u5408\uff08Set\uff09<\/h3>\n<\/p>\n<p><h4>1. \u96c6\u5408\u7684\u5b9a\u4e49\u548c\u7279\u70b9<\/h4>\n<\/p>\n<p><p>Python \u96c6\u5408\u662f\u4e00\u79cd\u65e0\u5e8f\u7684\u96c6\u5408\uff0c\u96c6\u5408\u4e2d\u7684\u5143\u7d20\u662f\u552f\u4e00\u7684\uff0c\u4e0d\u5141\u8bb8\u91cd\u590d\u3002\u96c6\u5408\u4f7f\u7528\u54c8\u5e0c\u8868\u5b9e\u73b0\uff0c\u5177\u6709\u5f88\u9ad8\u7684\u67e5\u627e\u6548\u7387\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u96c6\u5408<\/p>\n<p>data_set = {1, 3, 5, 7, 9}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u96c6\u5408\u7684\u5e38\u7528\u64cd\u4f5c<\/h4>\n<\/p>\n<ul>\n<li><strong>\u6dfb\u52a0\u5143\u7d20<\/strong>\uff1a\u4f7f\u7528 <code>add()<\/code> \u65b9\u6cd5\u5411\u96c6\u5408\u4e2d\u6dfb\u52a0\u5143\u7d20\u3002<\/li>\n<li><strong>\u5220\u9664\u5143\u7d20<\/strong>\uff1a\u4f7f\u7528 <code>remove()<\/code> \u65b9\u6cd5\u5220\u9664\u6307\u5b9a\u5143\u7d20\u3002<\/li>\n<li><strong>\u96c6\u5408\u8fd0\u7b97<\/strong>\uff1a\u53ef\u4ee5\u8fdb\u884c\u4ea4\u96c6\u3001\u5e76\u96c6\u3001\u5dee\u96c6\u7b49\u8fd0\u7b97\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\"># \u6dfb\u52a0\u5143\u7d20<\/p>\n<p>data_set.add(11)<\/p>\n<h2><strong>\u5220\u9664\u5143\u7d20<\/strong><\/h2>\n<p>data_set.remove(5)<\/p>\n<h2><strong>\u4ea4\u96c6<\/strong><\/h2>\n<p>intersection = data_set &amp; {3, 7, 11}<\/p>\n<h2><strong>\u5e76\u96c6<\/strong><\/h2>\n<p>union = data_set | {2, 4, 6}<\/p>\n<h2><strong>\u5dee\u96c6<\/strong><\/h2>\n<p>difference = data_set - {7, 11}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u96c6\u5408\u7684\u5e94\u7528\u573a\u666f<\/h4>\n<\/p>\n<p><p>\u96c6\u5408\u9002\u7528\u4e8e\u9700\u8981\u5b58\u50a8\u552f\u4e00\u6570\u636e\u4e14\u4e0d\u5173\u5fc3\u987a\u5e8f\u7684\u573a\u666f\uff0c\u6bd4\u5982\u5b58\u50a8\u4e00\u7ec4\u4e0d\u91cd\u590d\u7684\u6807\u7b7e\u3001\u552f\u4e00\u7528\u6237ID\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5b57\u5178\uff08Dictionary\uff09<\/h3>\n<\/p>\n<p><h4>1. \u5b57\u5178\u7684\u5b9a\u4e49\u548c\u7279\u70b9<\/h4>\n<\/p>\n<p><p>Python \u5b57\u5178\u662f\u4e00\u79cd\u952e\u503c\u5bf9\u96c6\u5408\uff0c\u5b57\u5178\u4e2d\u7684\u952e\u662f\u552f\u4e00\u7684\uff0c\u503c\u53ef\u4ee5\u662f\u4efb\u610f\u7c7b\u578b\u3002\u5b57\u5178\u4f7f\u7528\u54c8\u5e0c\u8868\u5b9e\u73b0\uff0c\u5177\u6709\u5f88\u9ad8\u7684\u67e5\u627e\u6548\u7387\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u5b57\u5178<\/p>\n<p>data_dict = {&#39;a&#39;: 1, &#39;b&#39;: 3, &#39;c&#39;: 5}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5b57\u5178\u7684\u5e38\u7528\u64cd\u4f5c<\/h4>\n<\/p>\n<ul>\n<li><strong>\u6dfb\u52a0\/\u66f4\u65b0\u5143\u7d20<\/strong>\uff1a\u4f7f\u7528\u952e\u503c\u5bf9\u7684\u65b9\u5f0f\u6dfb\u52a0\u6216\u66f4\u65b0\u5b57\u5178\u4e2d\u7684\u5143\u7d20\u3002<\/li>\n<li><strong>\u5220\u9664\u5143\u7d20<\/strong>\uff1a\u4f7f\u7528 <code>del<\/code> \u8bed\u53e5\u5220\u9664\u6307\u5b9a\u952e\u7684\u5143\u7d20\u3002<\/li>\n<li><strong>\u8bbf\u95ee\u5143\u7d20<\/strong>\uff1a\u901a\u8fc7\u952e\u8bbf\u95ee\u5b57\u5178\u4e2d\u7684\u503c\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\"># \u6dfb\u52a0\/\u66f4\u65b0\u5143\u7d20<\/p>\n<p>data_dict[&#39;d&#39;] = 7<\/p>\n<h2><strong>\u5220\u9664\u5143\u7d20<\/strong><\/h2>\n<p>del data_dict[&#39;b&#39;]<\/p>\n<h2><strong>\u8bbf\u95ee\u5143\u7d20<\/strong><\/h2>\n<p>value = data_dict[&#39;a&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5b57\u5178\u7684\u5e94\u7528\u573a\u666f<\/h4>\n<\/p>\n<p><p>\u5b57\u5178\u9002\u7528\u4e8e\u9700\u8981\u5b58\u50a8\u952e\u503c\u5bf9\u6570\u636e\u4e14\u9700\u8981\u5feb\u901f\u67e5\u627e\u7684\u573a\u666f\uff0c\u6bd4\u5982\u5b58\u50a8\u7528\u6237\u4fe1\u606f\u3001\u914d\u7f6e\u53c2\u6570\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5217\u8868\u4e0e\u96c6\u5408\u7684\u7ed3\u5408\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6709\u65f6\u9700\u8981\u540c\u65f6\u5229\u7528\u5217\u8868\u548c\u96c6\u5408\u7684\u4f18\u70b9\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u5217\u8868\u5b58\u50a8\u6709\u5e8f\u6570\u636e\uff0c\u7136\u540e\u4f7f\u7528\u96c6\u5408\u53bb\u91cd\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data_list = [1, 3, 5, 3, 7, 9, 5]<\/p>\n<h2><strong>\u8f6c\u6362\u4e3a\u96c6\u5408\u53bb\u91cd<\/strong><\/h2>\n<p>data_set = set(data_list)<\/p>\n<h2><strong>\u518d\u8f6c\u6362\u4e3a\u5217\u8868<\/strong><\/h2>\n<p>unique_list = list(data_set)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5b57\u5178\u4e0e\u5217\u8868\u7684\u7ed3\u5408\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u590d\u6742\u6570\u636e\u7ed3\u6784\u65f6\uff0c\u53ef\u4ee5\u5c06\u5b57\u5178\u4e0e\u5217\u8868\u7ed3\u5408\u4f7f\u7528\u3002\u4f8b\u5982\uff0c\u5b58\u50a8\u4e00\u7ec4\u5b66\u751f\u4fe1\u606f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">students = [<\/p>\n<p>    {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 20, &#39;grade&#39;: &#39;A&#39;},<\/p>\n<p>    {&#39;name&#39;: &#39;Bob&#39;, &#39;age&#39;: 22, &#39;grade&#39;: &#39;B&#39;},<\/p>\n<p>    {&#39;name&#39;: &#39;Charlie&#39;, &#39;age&#39;: 21, &#39;grade&#39;: &#39;C&#39;}<\/p>\n<p>]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u53ef\u4ee5\u65b9\u4fbf\u5730\u901a\u8fc7\u7d22\u5f15\u8bbf\u95ee\u5b66\u751f\u4fe1\u606f\uff0c\u540c\u65f6\u901a\u8fc7\u952e\u8bbf\u95ee\u5177\u4f53\u7684\u5c5e\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>Python \u4e00\u7ef4\u65e0\u5e8f\u6570\u636e\u7684\u8868\u8fbe\u65b9\u5f0f\u5305\u62ec\u5217\u8868\u3001\u96c6\u5408\u548c\u5b57\u5178\uff0c\u6bcf\u79cd\u6570\u636e\u7ed3\u6784\u6709\u5176\u72ec\u7279\u7684\u7279\u6027\u548c\u5e94\u7528\u573a\u666f\u3002<strong>\u5217\u8868\u9002\u7528\u4e8e\u9700\u8981\u5b58\u50a8\u6709\u5e8f\u6570\u636e\u5e76\u9891\u7e41\u8fdb\u884c\u589e\u5220\u64cd\u4f5c\u7684\u573a\u666f<\/strong>\uff0c<strong>\u96c6\u5408\u9002\u7528\u4e8e\u9700\u8981\u5b58\u50a8\u552f\u4e00\u6570\u636e\u4e14\u4e0d\u5173\u5fc3\u987a\u5e8f\u7684\u573a\u666f<\/strong>\uff0c<strong>\u5b57\u5178\u9002\u7528\u4e8e\u9700\u8981\u5b58\u50a8\u952e\u503c\u5bf9\u6570\u636e\u4e14\u9700\u8981\u5feb\u901f\u67e5\u627e\u7684\u573a\u666f<\/strong>\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5e76\u7ed3\u5408\u4f7f\u7528\u4ee5\u8fbe\u5230\u6700\u4f73\u6548\u679c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e00\u7ef4\u65e0\u5e8f\u6570\u636e\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u3001\u5143\u7ec4\u6216NumPy\u6570\u7ec4\u6765\u521b\u5efa\u4e00\u7ef4\u65e0\u5e8f\u6570\u636e\u3002\u5217\u8868\u662f\u6700\u5e38\u7528\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u901a\u8fc7\u5c06\u6570\u636e\u9879\u7528\u9017\u53f7\u5206\u9694\u653e\u5728\u65b9\u62ec\u53f7\u4e2d\u6765\u521b\u5efa\u3002\u4f8b\u5982\uff1a<code>data = [3, 1, 4, 1, 5]<\/code>\u3002\u5982\u679c\u9700\u8981\u66f4\u9ad8\u7ea7\u7684\u6570\u503c\u8fd0\u7b97\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528NumPy\u5e93\uff0c\u521b\u5efa\u65b9\u5f0f\u4e3a<code>import numpy as np<\/code>\u540e\u4f7f\u7528<code>np.array([3, 1, 4, 1, 5])<\/code>\u3002<\/p>\n<p><strong>\u5982\u4f55\u5bf9Python\u4e2d\u7684\u4e00\u7ef4\u65e0\u5e8f\u6570\u636e\u8fdb\u884c\u6392\u5e8f\uff1f<\/strong><br \/>\u5bf9\u4e00\u7ef4\u65e0\u5e8f\u6570\u636e\u8fdb\u884c\u6392\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u5185\u7f6e\u7684<code>sorted()<\/code>\u51fd\u6570\u6216\u5217\u8868\u7684<code>sort()<\/code>\u65b9\u6cd5\u3002<code>sorted(data)<\/code>\u4f1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u5217\u8868\uff0c\u800c<code>data.sort()<\/code>\u4f1a\u5728\u539f\u5217\u8868\u4e0a\u8fdb\u884c\u6392\u5e8f\u3002\u4f8b\u5982\uff1a\u5bf9\u4e8e<code>data = [3, 1, 4, 1, 5]<\/code>\uff0c\u4f7f\u7528<code>sorted(data)<\/code>\u4f1a\u5f97\u5230<code>[1, 1, 3, 4, 5]<\/code>\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5feb\u901f\u67e5\u627e\u4e00\u7ef4\u65e0\u5e8f\u6570\u636e\u4e2d\u7684\u7279\u5b9a\u503c\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>in<\/code>\u5173\u952e\u5b57\u5feb\u901f\u5224\u65ad\u7279\u5b9a\u503c\u662f\u5426\u5728\u4e00\u7ef4\u65e0\u5e8f\u6570\u636e\u4e2d\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>if value in data:<\/code>\u8bed\u53e5\u6765\u68c0\u67e5\u67d0\u4e2a\u503c\u662f\u5426\u5b58\u5728\u4e8e\u5217\u8868\u4e2d\u3002\u5982\u679c\u9700\u8981\u83b7\u53d6\u503c\u7684\u7d22\u5f15\uff0c\u53ef\u4ee5\u4f7f\u7528<code>data.index(value)<\/code>\uff0c\u4f46\u8bf7\u6ce8\u610f\uff0c\u6b64\u65b9\u6cd5\u5728\u503c\u4e0d\u5b58\u5728\u65f6\u4f1a\u629b\u51fa\u5f02\u5e38\u3002\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u67e5\u627e\u9700\u6c42\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u96c6\u5408\u6216\u5b57\u5178\u6765\u63d0\u9ad8\u67e5\u627e\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python \u4e00\u7ef4\u65e0\u5e8f\u6570\u636e\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u3001\u96c6\u5408\u3001\u5b57\u5178\u6765\u8868\u8fbe\uff0c\u5176\u4e2d\uff0c\u5217\u8868\u9002\u7528\u4e8e\u9700\u8981\u4fdd\u7559\u6570\u636e\u987a\u5e8f\u7684\u60c5\u51b5\uff0c\u96c6\u5408\u9002\u7528\u4e8e\u9700 [&hellip;]","protected":false},"author":3,"featured_media":1039909,"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\/1039892"}],"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=1039892"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1039892\/revisions"}],"predecessor-version":[{"id":1039910,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1039892\/revisions\/1039910"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1039909"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1039892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1039892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1039892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}