{"id":1012905,"date":"2024-12-27T11:43:20","date_gmt":"2024-12-27T03:43:20","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1012905.html"},"modified":"2024-12-27T11:43:26","modified_gmt":"2024-12-27T03:43:26","slug":"python%e5%a6%82%e4%bd%95%e5%88%97%e8%a1%a8%e5%87%8f%e5%88%97%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1012905.html","title":{"rendered":"python\u5982\u4f55\u5217\u8868\u51cf\u5217\u8868"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25090524\/904ce33f-1f36-421f-94eb-6a066984adf8.webp\" alt=\"python\u5982\u4f55\u5217\u8868\u51cf\u5217\u8868\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u5217\u8868\u51cf\u5217\u8868\u53ef\u4ee5\u901a\u8fc7\u5217\u8868\u89e3\u6790\u3001\u96c6\u5408\u8fd0\u7b97\u3001\u4ee5\u53ca\u4f7f\u7528\u5916\u90e8\u5e93\u5982NumPy\u6765\u5b9e\u73b0\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u65b9\u5f0f\u6765\u5904\u7406\u5217\u8868\u4e4b\u95f4\u7684\u5dee\u96c6\u8fd0\u7b97\u3002<\/strong> \u4f7f\u7528\u5217\u8868\u89e3\u6790\u662f\u6700\u76f4\u89c2\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u5b83\u901a\u8fc7\u904d\u5386\u5217\u8868\u5143\u7d20\u5e76\u6392\u9664\u5728\u7b2c\u4e8c\u4e2a\u5217\u8868\u4e2d\u51fa\u73b0\u7684\u5143\u7d20\u6765\u5b9e\u73b0\u5dee\u96c6\u3002\u96c6\u5408\u8fd0\u7b97\u5219\u5229\u7528\u96c6\u5408\u7684\u7279\u6027\uff0c\u53ef\u4ee5\u5feb\u901f\u5730\u5b8c\u6210\u5dee\u96c6\u8fd0\u7b97\u3002NumPy\u5e93\u63d0\u4f9b\u4e86\u4e00\u79cd\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u7279\u522b\u9002\u7528\u4e8e\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5217\u8868\u89e3\u6790\u5b9e\u73b0\u5217\u8868\u51cf\u5217\u8868<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u662f\u4e00\u79cd\u7b80\u6d01\u4e14\u9ad8\u6548\u7684\u5b9e\u73b0\u65b9\u5f0f\u3002\u901a\u8fc7\u5217\u8868\u89e3\u6790\uff0c\u6211\u4eec\u53ef\u4ee5\u5feb\u901f\u4ece\u4e00\u4e2a\u5217\u8868\u4e2d\u51cf\u53bb\u53e6\u4e00\u4e2a\u5217\u8868\u7684\u6240\u6709\u5143\u7d20\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u8bed\u6cd5\u7b80\u5355\uff0c\u6613\u4e8e\u7406\u89e3\u548c\u5b9e\u73b0\u3002\u4ee5\u4e0b\u662f\u5176\u5b9e\u73b0\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3, 4, 5]<\/p>\n<p>list2 = [2, 4]<\/p>\n<p>result = [item for item in list1 if item not in list2]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7\u5217\u8868\u89e3\u6790\u6784\u5efa\u4e86\u4e00\u4e2a\u65b0\u7684\u5217\u8868 <code>result<\/code>\uff0c\u5176\u4e2d\u53ea\u5305\u542b <code>list1<\/code> \u4e2d\u672a\u51fa\u73b0\u5728 <code>list2<\/code> \u7684\u5143\u7d20\u3002<strong>\u8fd9\u662f\u4e00\u79cd\u5e38\u89c1\u4e14\u5b9e\u7528\u7684\u65b9\u5f0f\uff0c\u9002\u5408\u5904\u7406\u5c0f\u578b\u5217\u8868\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u96c6\u5408\u5b9e\u73b0\u5217\u8868\u51cf\u5217\u8868<\/h3>\n<\/p>\n<p><p>Python\u7684\u96c6\u5408\uff08set\uff09\u63d0\u4f9b\u4e86\u4e00\u79cd\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\u5217\u8868\u5dee\u96c6\u8fd0\u7b97\u3002\u96c6\u5408\u5177\u6709\u5185\u7f6e\u7684\u5dee\u96c6\u8fd0\u7b97\u7b26 <code>-<\/code>\uff0c\u53ef\u4ee5\u5feb\u901f\u8ba1\u7b97\u4e24\u4e2a\u96c6\u5408\u7684\u5dee\u96c6\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u901f\u5ea6\u5feb\uff0c\u7279\u522b\u662f\u5f53\u5904\u7406\u8f83\u5927\u7684\u6570\u636e\u96c6\u65f6\u3002\u4ee5\u4e0b\u662f\u5176\u5b9e\u73b0\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3, 4, 5]<\/p>\n<p>list2 = [2, 4]<\/p>\n<p>result = list(set(list1) - set(list2))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u96c6\u5408\u8fd0\u7b97\u7684\u4e3b\u8981\u4f18\u52bf\u5728\u4e8e\u5176\u6548\u7387\u9ad8<\/strong>\uff0c\u56e0\u4e3a\u96c6\u5408\u4f7f\u7528\u54c8\u5e0c\u8868\u5b9e\u73b0\uff0c\u53ef\u4ee5\u5728\u5e38\u6570\u65f6\u95f4\u5185\u5b8c\u6210\u5143\u7d20\u67e5\u627e\u548c\u5220\u9664\u3002\u7136\u800c\uff0c\u96c6\u5408\u4f1a\u81ea\u52a8\u53bb\u9664\u91cd\u590d\u5143\u7d20\uff0c\u56e0\u6b64\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u9002\u5408\u9700\u8981\u4fdd\u7559\u5217\u8868\u4e2d\u91cd\u590d\u5143\u7d20\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528NumPy\u5b9e\u73b0\u5217\u8868\u51cf\u5217\u8868<\/h3>\n<\/p>\n<p><p>NumPy\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u7b2c\u4e09\u65b9\u5e93\uff0c\u4e13\u4e3a\u6570\u503c\u8ba1\u7b97\u800c\u8bbe\u8ba1\uff0c\u7279\u522b\u9002\u7528\u4e8e\u5904\u7406\u5927\u578b\u6570\u7ec4\u548c\u77e9\u9635\u8fd0\u7b97\u3002\u4f7f\u7528NumPy\u53ef\u4ee5\u6709\u6548\u5730\u5b9e\u73b0\u5217\u8868\u7684\u5dee\u96c6\u8fd0\u7b97\uff0c\u4ee5\u4e0b\u662f\u5176\u5b9e\u73b0\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>list1 = np.array([1, 2, 3, 4, 5])<\/p>\n<p>list2 = np.array([2, 4])<\/p>\n<p>result = np.setdiff1d(list1, list2)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>NumPy\u63d0\u4f9b\u7684 <code>setdiff1d<\/code> \u51fd\u6570\u4e13\u95e8\u7528\u4e8e\u8ba1\u7b97\u4e24\u4e2a\u6570\u7ec4\u7684\u5dee\u96c6\uff0c<strong>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4e3b\u8981\u4f18\u52bf\u5728\u4e8e\u5176\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u7684\u80fd\u529b<\/strong>\uff0c\u5e76\u4e14NumPy\u7684\u5e95\u5c42\u5b9e\u73b0\u975e\u5e38\u9ad8\u6548\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u6bd4\u8f83\u4e0d\u540c\u65b9\u6cd5\u7684\u4f18\u7f3a\u70b9<\/h3>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u5177\u4f53\u5b9e\u73b0\u65b9\u5f0f\u65f6\uff0c\u9700\u8981\u6839\u636e\u5b9e\u9645\u5e94\u7528\u573a\u666f\u6765\u6743\u8861\u4e0d\u540c\u65b9\u6cd5\u7684\u4f18\u7f3a\u70b9\u3002\u5217\u8868\u89e3\u6790\u9002\u7528\u4e8e\u5c0f\u89c4\u6a21\u6570\u636e\uff0c\u7b80\u5355\u76f4\u89c2\uff1b\u96c6\u5408\u8fd0\u7b97\u9002\u7528\u4e8e\u4e2d\u7b49\u89c4\u6a21\u6570\u636e\uff0c\u901f\u5ea6\u5feb\uff1bNumPy\u9002\u7528\u4e8e\u5927\u578b\u6570\u636e\u96c6\uff0c\u529f\u80fd\u5f3a\u5927\u3002<\/p>\n<\/p>\n<p><h4>1. \u5217\u8868\u89e3\u6790<\/h4>\n<\/p>\n<p><p><strong>\u4f18\u70b9\uff1a<\/strong> \u7b80\u5355\u6613\u7528\uff0c\u4ee3\u7801\u53ef\u8bfb\u6027\u9ad8\u3002<br \/><strong>\u7f3a\u70b9\uff1a<\/strong> \u5bf9\u4e8e\u5927\u578b\u5217\u8868\u53ef\u80fd\u6548\u7387\u8f83\u4f4e\u3002<\/p>\n<\/p>\n<p><h4>2. \u96c6\u5408\u8fd0\u7b97<\/h4>\n<\/p>\n<p><p><strong>\u4f18\u70b9\uff1a<\/strong> \u5904\u7406\u901f\u5ea6\u5feb\uff0c\u9002\u5408\u8f83\u5927\u89c4\u6a21\u6570\u636e\u3002<br \/><strong>\u7f3a\u70b9\uff1a<\/strong> \u81ea\u52a8\u53bb\u91cd\uff0c\u65e0\u6cd5\u4fdd\u7559\u91cd\u590d\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h4>3. NumPy<\/h4>\n<\/p>\n<p><p><strong>\u4f18\u70b9\uff1a<\/strong> \u9ad8\u6548\uff0c\u9002\u5408\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u3002<br \/><strong>\u7f3a\u70b9\uff1a<\/strong> \u9700\u8981\u5b89\u88c5NumPy\u5e93\uff0c\u589e\u52a0\u4e86\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5e94\u7528\u573a\u666f\u5b9e\u4f8b<\/h3>\n<\/p>\n<p><p>\u4e3a\u66f4\u597d\u5730\u7406\u89e3\u5217\u8868\u51cf\u5217\u8868\u7684\u5b9e\u9645\u5e94\u7528\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u51e0\u4e2a\u5b9e\u4f8b\u6765\u6f14\u793a\u4e0d\u540c\u65b9\u6cd5\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h4>1. \u6570\u636e\u6e05\u6d17<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5904\u7406\u8fc7\u7a0b\u4e2d\uff0c\u7ecf\u5e38\u9700\u8981\u4ece\u4e00\u4e2a\u5217\u8868\u4e2d\u53bb\u9664\u4e0d\u9700\u8981\u7684\u5143\u7d20\u3002\u4f8b\u5982\uff0c\u5728\u7528\u6237\u6570\u636e\u5206\u6790\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u4ece\u8bbf\u95ee\u5217\u8868\u4e2d\u53bb\u9664\u6240\u6709\u7684\u5185\u90e8IP\u5730\u5740\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">visitors = [&#39;192.168.1.1&#39;, &#39;10.0.0.5&#39;, &#39;203.0.113.1&#39;]<\/p>\n<p>internal_ips = [&#39;192.168.1.1&#39;, &#39;10.0.0.5&#39;]<\/p>\n<p>clean_visitors = [ip for ip in visitors if ip not in internal_ips]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4ea4\u96c6\u8fd0\u7b97\u7684\u53cd\u5411\u64cd\u4f5c<\/h4>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u9700\u8981\u627e\u51fa\u4e24\u4e2a\u5217\u8868\u7684\u975e\u4ea4\u96c6\u5143\u7d20\uff0c\u4f8b\u5982\uff0c\u5728\u5b66\u751f\u9009\u8bfe\u7cfb\u7edf\u4e2d\uff0c\u9700\u8981\u627e\u51fa\u54ea\u4e9b\u5b66\u751f\u5c1a\u672a\u9009\u4fee\u67d0\u95e8\u8bfe\u7a0b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">students = [&#39;Alice&#39;, &#39;Bob&#39;, &#39;Charlie&#39;]<\/p>\n<p>enrolled = [&#39;Alice&#39;]<\/p>\n<p>not_enrolled = list(set(students) - set(enrolled))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5927\u6570\u636e\u8ba1\u7b97<\/h4>\n<\/p>\n<p><p>\u5728\u79d1\u5b66\u8ba1\u7b97\u6216\u5927\u6570\u636e\u5206\u6790\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u9ad8\u6548\u5730\u5904\u7406\u5927\u91cf\u6570\u636e\u96c6\uff0c\u8fd9\u65f6NumPy\u7684\u6027\u80fd\u4f18\u52bf\u5c24\u4e3a\u660e\u663e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>data_set1 = np.random.randint(0, 1000, size=1000000)<\/p>\n<p>data_set2 = np.random.randint(0, 1000, size=500000)<\/p>\n<p>diff = np.setdiff1d(data_set1, data_set2)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3\u4e0e\u5efa\u8bae<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5b9e\u73b0\u5217\u8868\u51cf\u5217\u8868\u7684\u64cd\u4f5c\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u548c\u4f18\u52bf\u3002<strong>\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u9700\u6839\u636e\u6570\u636e\u89c4\u6a21\u3001\u6027\u80fd\u8981\u6c42\u4ee5\u53ca\u4ee3\u7801\u590d\u6742\u5ea6\u7b49\u56e0\u7d20\u7efc\u5408\u8003\u8651<\/strong>\u3002\u5728\u5c0f\u578b\u6570\u636e\u96c6\u4e0a\uff0c\u5217\u8868\u89e3\u6790\u662f\u4e00\u79cd\u7b80\u5355\u6709\u6548\u7684\u9009\u62e9\uff1b\u5bf9\u4e8e\u9700\u8981\u5904\u7406\u91cd\u590d\u5143\u7d20\u7684\u573a\u666f\uff0c\u96c6\u5408\u8fd0\u7b97\u662f\u4e0d\u4e8c\u4e4b\u9009\uff1b\u800c\u5728\u5927\u89c4\u6a21\u6570\u636e\u5904\u7406\u4e2d\uff0cNumPy\u63d0\u4f9b\u4e86\u65e0\u4e0e\u4f26\u6bd4\u7684\u6027\u80fd\u4f18\u52bf\u3002\u4e86\u89e3\u5e76\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\u7684\u4f7f\u7528\uff0c\u5c06\u663e\u8457\u63d0\u9ad8\u6570\u636e\u5904\u7406\u7684\u6548\u7387\u548c\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u5217\u8868\u7684\u51cf\u6cd5\u64cd\u4f5c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5217\u8868\u89e3\u6790\u3001\u96c6\u5408\u8fd0\u7b97\u6216\u8005\u5faa\u73af\u6765\u5b9e\u73b0\u5217\u8868\u7684\u51cf\u6cd5\u64cd\u4f5c\u3002\u5217\u8868\u89e3\u6790\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u4e00\u4e2a\u5217\u8868\uff0c\u5e76\u5728\u6761\u4ef6\u4e2d\u6392\u9664\u53e6\u4e00\u4e2a\u5217\u8868\u7684\u5143\u7d20\u3002\u4f8b\u5982\uff0c<code>result = [item for item in list1 if item not in list2]<\/code> \u8fd9\u6837\u53ef\u4ee5\u5f97\u5230list1\u4e2d\u4e0d\u5728list2\u4e2d\u7684\u5143\u7d20\u3002<\/p>\n<p><strong>\u4f7f\u7528\u96c6\u5408\uff08set\uff09\u8fdb\u884c\u5217\u8868\u51cf\u6cd5\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u4f7f\u7528\u96c6\u5408\u6765\u8fdb\u884c\u5217\u8868\u51cf\u6cd5\u64cd\u4f5c\u662f\u975e\u5e38\u9ad8\u6548\u7684\uff0c\u56e0\u4e3a\u96c6\u5408\u7684\u67e5\u627e\u590d\u6742\u5ea6\u4e3aO(1)\u3002\u901a\u8fc7\u5c06\u4e24\u4e2a\u5217\u8868\u8f6c\u6362\u4e3a\u96c6\u5408\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u4f7f\u7528\u96c6\u5408\u7684\u5dee\u96c6\u64cd\u4f5c\uff0c<code>result = list(set(list1) - set(list2))<\/code>\u3002\u4e0d\u8fc7\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u96c6\u5408\u4f1a\u4e22\u5931\u5143\u7d20\u7684\u987a\u5e8f\u548c\u91cd\u590d\u5143\u7d20\u3002<\/p>\n<p><strong>\u5217\u8868\u51cf\u6cd5\u64cd\u4f5c\u4f1a\u5bf9\u539f\u5217\u8868\u4ea7\u751f\u5f71\u54cd\u5417\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u4f7f\u7528\u5217\u8868\u51cf\u6cd5\u64cd\u4f5c\u7684\u5e38\u89c1\u65b9\u6cd5\uff08\u5982\u5217\u8868\u89e3\u6790\u6216\u96c6\u5408\uff09\u901a\u5e38\u4e0d\u4f1a\u6539\u53d8\u539f\u59cb\u5217\u8868\u3002\u8fd9\u4e9b\u65b9\u6cd5\u4f1a\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff0c\u800c\u4e0d\u4f1a\u76f4\u63a5\u4fee\u6539\u539f\u59cb\u5217\u8868\u3002\u5982\u679c\u5e0c\u671b\u4fdd\u7559\u539f\u5217\u8868\u4e0d\u53d8\uff0c\u53ef\u4ee5\u5c06\u7ed3\u679c\u8d4b\u503c\u7ed9\u4e00\u4e2a\u65b0\u53d8\u91cf\uff0c\u4fdd\u6301\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u5217\u8868\u51cf\u5217\u8868\u53ef\u4ee5\u901a\u8fc7\u5217\u8868\u89e3\u6790\u3001\u96c6\u5408\u8fd0\u7b97\u3001\u4ee5\u53ca\u4f7f\u7528\u5916\u90e8\u5e93\u5982NumPy\u6765\u5b9e\u73b0\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684 [&hellip;]","protected":false},"author":3,"featured_media":1012914,"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\/1012905"}],"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=1012905"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1012905\/revisions"}],"predecessor-version":[{"id":1012918,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1012905\/revisions\/1012918"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1012914"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1012905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1012905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1012905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}