{"id":1142584,"date":"2025-01-08T22:41:40","date_gmt":"2025-01-08T14:41:40","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1142584.html"},"modified":"2025-01-08T22:41:43","modified_gmt":"2025-01-08T14:41:43","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e6%95%b0%e6%8d%ae%e4%b8%80%e5%88%86%e4%b8%ba%e4%ba%8c","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1142584.html","title":{"rendered":"python\u5982\u4f55\u5c06\u6570\u636e\u4e00\u5206\u4e3a\u4e8c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24180635\/3095de70-46fc-4a7f-882d-6742c3e86775.webp\" alt=\"python\u5982\u4f55\u5c06\u6570\u636e\u4e00\u5206\u4e3a\u4e8c\" \/><\/p>\n<p><p> <strong>Python \u5c06\u6570\u636e\u4e00\u5206\u4e3a\u4e8c\u7684\u65b9\u6cd5<\/strong>\u5305\u62ec\uff1a\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u3001\u5229\u7528 NumPy \u5e93\u3001\u4f7f\u7528 <code>random.sample<\/code> \u65b9\u6cd5\u3001\u901a\u8fc7 pandas \u5e93\u7684 <code>sample<\/code> \u65b9\u6cd5\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u63cf\u8ff0\u8fd9\u4e9b\u65b9\u6cd5\u53ca\u5176\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5207\u7247\u64cd\u4f5c<\/h3>\n<\/p>\n<p><p>\u5728 Python \u4e2d\uff0c\u5207\u7247\u64cd\u4f5c\u662f\u4e00\u79cd\u975e\u5e38\u5e38\u7528\u7684\u6280\u672f\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06\u6570\u636e\u5206\u5272\u4e3a\u591a\u4e2a\u90e8\u5206\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u5217\u8868 <code>data<\/code>\uff0c\u6211\u4eec\u53ef\u4ee5\u7528\u5207\u7247\u64cd\u4f5c\u5c06\u5176\u5206\u6210\u4e24\u90e8\u5206\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]<\/p>\n<p>midpoint = len(data) \/\/ 2<\/p>\n<p>first_half = data[:midpoint]<\/p>\n<p>second_half = data[midpoint:]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u5207\u7247\u64cd\u4f5c\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u7528\u4e8e\u5c0f\u89c4\u6a21\u6570\u636e\u96c6<\/strong>\u3002\u5207\u7247\u64cd\u4f5c\u7684\u6838\u5fc3\u5728\u4e8e\u786e\u5b9a\u5206\u5272\u70b9\uff0c\u7136\u540e\u6839\u636e\u7d22\u5f15\u8fdb\u884c\u5206\u5272\u3002\u4e0b\u9762\u6211\u4eec\u8be6\u7ec6\u89e3\u91ca\u5176\u5de5\u4f5c\u539f\u7406\u53ca\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h4>\u786e\u5b9a\u5206\u5272\u70b9<\/h4>\n<\/p>\n<p><p>\u5728\u5207\u7247\u64cd\u4f5c\u4e2d\uff0c\u786e\u5b9a\u5206\u5272\u70b9\u662f\u5173\u952e\u3002\u901a\u5e38\uff0c\u6211\u4eec\u4f1a\u9009\u62e9\u6570\u636e\u96c6\u957f\u5ea6\u7684\u4e00\u534a\u4f5c\u4e3a\u5206\u5272\u70b9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">midpoint = len(data) \/\/ 2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5207\u7247\u64cd\u4f5c<\/h4>\n<\/p>\n<p><p>\u6839\u636e\u5206\u5272\u70b9\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u5c06\u5217\u8868\u5206\u5272\u4e3a\u4e24\u90e8\u5206\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">first_half = data[:midpoint]<\/p>\n<p>second_half = data[midpoint:]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u6570\u636e\u91cf\u8f83\u5c0f\u4e14\u5206\u5272\u8f83\u4e3a\u5747\u5300\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5229\u7528 NumPy \u5e93<\/h3>\n<\/p>\n<p><p>NumPy \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u63d0\u4f9b\u4e86\u8bb8\u591a\u6570\u7ec4\u5904\u7406\u529f\u80fd\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 NumPy \u7684\u5207\u7247\u529f\u80fd\u6765\u5206\u5272\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>data = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])<\/p>\n<p>midpoint = len(data) \/\/ 2<\/p>\n<p>first_half = data[:midpoint]<\/p>\n<p>second_half = data[midpoint:]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>NumPy \u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\uff0c\u9002\u7528\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u96c6<\/strong>\u3002\u4e0b\u9762\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528 NumPy \u5206\u5272\u6570\u636e\u4ee5\u53ca\u5176\u9002\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h4>\u5bfc\u5165 NumPy \u5e93<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5bfc\u5165 NumPy \u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u521b\u5efa NumPy \u6570\u7ec4<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u6570\u636e\u8f6c\u6362\u4e3a NumPy \u6570\u7ec4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f7f\u7528\u5207\u7247\u64cd\u4f5c<\/h4>\n<\/p>\n<p><p>\u4e0e Python \u539f\u751f\u5217\u8868\u7c7b\u4f3c\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u5c06 NumPy \u6570\u7ec4\u5206\u5272\u4e3a\u4e24\u90e8\u5206\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">midpoint = len(data) \/\/ 2<\/p>\n<p>first_half = data[:midpoint]<\/p>\n<p>second_half = data[midpoint:]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u6570\u636e\u91cf\u8f83\u5927\u4e14\u9700\u8981\u9ad8\u6548\u5904\u7406\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528 <code>random.sample<\/code> \u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u4e0d\u9700\u8981\u4e25\u683c\u5747\u5300\u5206\u5272\u7684\u6570\u636e\u96c6\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 Python \u7684 <code>random<\/code> \u6a21\u5757\u4e2d\u7684 <code>sample<\/code> \u65b9\u6cd5\u968f\u673a\u62bd\u53d6\u4e00\u90e8\u5206\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]<\/p>\n<p>first_half = random.sample(data, len(data) \/\/ 2)<\/p>\n<p>second_half = [item for item in data if item not in first_half]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong><code>random.sample<\/code> \u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u968f\u673a\u5206\u5272\u7684\u6570\u636e\u96c6<\/strong>\u3002\u4e0b\u9762\u6211\u4eec\u8be6\u7ec6\u89e3\u91ca\u5176\u5de5\u4f5c\u539f\u7406\u53ca\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h4>\u5bfc\u5165 <code>random<\/code> \u6a21\u5757<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5bfc\u5165 <code>random<\/code> \u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f7f\u7528 <code>random.sample<\/code> \u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u4f7f\u7528 <code>random.sample<\/code> \u65b9\u6cd5\u4ece\u6570\u636e\u96c6\u4e2d\u968f\u673a\u62bd\u53d6\u4e00\u90e8\u5206\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">first_half = random.sample(data, len(data) \/\/ 2)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5269\u4f59\u6570\u636e<\/h4>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u6211\u4eec\u5c06\u5269\u4f59\u7684\u6570\u636e\u653e\u5165\u53e6\u4e00\u4e2a\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">second_half = [item for item in data if item not in first_half]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u968f\u673a\u5206\u5272\u6570\u636e\u96c6\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u901a\u8fc7 pandas \u5e93\u7684 <code>sample<\/code> \u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>pandas \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u636e\u5206\u6790\u5e93\uff0c\u63d0\u4f9b\u4e86\u8bb8\u591a\u65b9\u4fbf\u7684\u6570\u636e\u64cd\u4f5c\u65b9\u6cd5\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 pandas \u7684 <code>sample<\/code> \u65b9\u6cd5\u968f\u673a\u62bd\u53d6\u4e00\u90e8\u5206\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>data = pd.DataFrame({&#39;values&#39;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]})<\/p>\n<p>first_half = data.sample(frac=0.5, random_state=1)<\/p>\n<p>second_half = data.drop(first_half.index)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>pandas \u7684 <code>sample<\/code> \u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u968f\u673a\u5206\u5272\u4e14\u7ed3\u6784\u5316\u6570\u636e\u96c6<\/strong>\u3002\u4e0b\u9762\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528 pandas \u5206\u5272\u6570\u636e\u4ee5\u53ca\u5176\u9002\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h4>\u5bfc\u5165 pandas \u5e93<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5bfc\u5165 pandas \u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u521b\u5efa DataFrame<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u6570\u636e\u8f6c\u6362\u4e3a pandas DataFrame\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = pd.DataFrame({&#39;values&#39;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]})<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f7f\u7528 <code>sample<\/code> \u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u4f7f\u7528 <code>sample<\/code> \u65b9\u6cd5\u4ece DataFrame \u4e2d\u968f\u673a\u62bd\u53d6\u4e00\u90e8\u5206\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">first_half = data.sample(frac=0.5, random_state=1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5269\u4f59\u6570\u636e<\/h4>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u6211\u4eec\u5c06\u5269\u4f59\u7684\u6570\u636e\u653e\u5165\u53e6\u4e00\u4e2a DataFrame\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">second_half = data.drop(first_half.index)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u968f\u673a\u5206\u5272\u7ed3\u6784\u5316\u6570\u636e\u96c6\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h3>\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p><strong>\u5c06\u6570\u636e\u4e00\u5206\u4e3a\u4e8c\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837<\/strong>\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002\u5bf9\u4e8e\u5c0f\u89c4\u6a21\u4e14\u9700\u8981\u5747\u5300\u5206\u5272\u7684\u6570\u636e\u96c6\uff0c\u5207\u7247\u64cd\u4f5c\u662f\u6700\u7b80\u5355\u7684\u9009\u62e9\uff1b\u5bf9\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u96c6\uff0cNumPy \u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\uff1b\u5bf9\u4e8e\u9700\u8981\u968f\u673a\u5206\u5272\u7684\u6570\u636e\u96c6\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>random.sample<\/code> \u65b9\u6cd5\uff1b\u5bf9\u4e8e\u7ed3\u6784\u5316\u6570\u636e\u96c6\uff0cpandas \u7684 <code>sample<\/code> \u65b9\u6cd5\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u9009\u62e9\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u5e94\u6839\u636e\u6570\u636e\u89c4\u6a21\u3001\u5206\u5272\u9700\u6c42\u4ee5\u53ca\u5904\u7406\u6548\u7387\u7b49\u56e0\u7d20\u8fdb\u884c\u7efc\u5408\u8003\u8651\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u6570\u636e\u5206\u5272\u4e3a\u4e24\u4e2a\u90e8\u5206\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\u5c06\u6570\u636e\u5206\u5272\u4e3a\u4e24\u4e2a\u90e8\u5206\u3002\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u5207\u7247\u3001NumPy\u5e93\u7684\u6570\u7ec4\u64cd\u4f5c\u6216Pandas\u5e93\u7684\u6570\u636e\u6846\u64cd\u4f5c\u3002\u6bd4\u5982\uff0c\u5bf9\u4e8e\u5217\u8868\uff0c\u53ef\u4ee5\u901a\u8fc7\u5207\u7247\u64cd\u4f5c<code>data[:len(data)\/\/2]<\/code>\u548c<code>data[len(data)\/\/2:]<\/code>\u6765\u5b9e\u73b0\u6570\u636e\u7684\u5747\u5206\u3002\u5bf9\u4e8ePandas\u6570\u636e\u6846\uff0c\u4f7f\u7528<code>iloc<\/code>\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u9009\u62e9\u884c\u548c\u5217\uff0c\u4ece\u800c\u5b9e\u73b0\u6570\u636e\u7684\u5206\u5272\u3002<\/p>\n<p><strong>\u4f7f\u7528NumPy\u5206\u5272\u6570\u636e\u6709\u4ec0\u4e48\u4f18\u52bf\uff1f<\/strong><br \/>NumPy\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u7ec4\u5904\u7406\u529f\u80fd\uff0c\u80fd\u591f\u5bf9\u5927\u578b\u6570\u636e\u96c6\u8fdb\u884c\u5feb\u901f\u8ba1\u7b97\u548c\u5206\u5272\u3002\u4f7f\u7528<code>numpy.array_split()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u5c06\u6570\u7ec4\u5206\u4e3a\u591a\u4e2a\u90e8\u5206\uff0c\u5305\u62ec\u4e24\u90e8\u5206\u3002\u8fd9\u4e2a\u65b9\u6cd5\u4e0d\u4ec5\u652f\u6301\u4e00\u7ef4\u6570\u7ec4\uff0c\u8fd8\u53ef\u4ee5\u5904\u7406\u591a\u7ef4\u6570\u7ec4\uff0c\u5e2e\u52a9\u7528\u6237\u7075\u6d3b\u5904\u7406\u4e0d\u540c\u7ef4\u5ea6\u7684\u6570\u636e\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Pandas\u4e2d\u5c06\u6570\u636e\u6846\u6309\u884c\u5206\u5272\uff1f<\/strong><br \/>\u5728Pandas\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>iloc<\/code>\u6216<code>loc<\/code>\u65b9\u6cd5\u6839\u636e\u884c\u7d22\u5f15\u8fdb\u884c\u5206\u5272\u3002\u4f8b\u5982\uff0c<code>df.iloc[:len(df)\/\/2]<\/code>\u548c<code>df.iloc[len(df)\/\/2:]<\/code>\u53ef\u4ee5\u5c06\u6570\u636e\u6846\u5206\u4e3a\u524d\u534a\u90e8\u5206\u548c\u540e\u534a\u90e8\u5206\u3002\u8fd9\u79cd\u5206\u5272\u65b9\u5f0f\u975e\u5e38\u9002\u5408\u6570\u636e\u5206\u6790\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u4efb\u52a1\uff0c\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u5728\u5904\u7406\u6570\u636e\u65f6\u66f4\u5177\u9488\u5bf9\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python \u5c06\u6570\u636e\u4e00\u5206\u4e3a\u4e8c\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u3001\u5229\u7528 NumPy \u5e93\u3001\u4f7f\u7528 random.sample [&hellip;]","protected":false},"author":3,"featured_media":1142589,"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\/1142584"}],"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=1142584"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1142584\/revisions"}],"predecessor-version":[{"id":1142591,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1142584\/revisions\/1142591"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1142589"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1142584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1142584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1142584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}