{"id":983741,"date":"2024-12-27T07:22:02","date_gmt":"2024-12-26T23:22:02","guid":{"rendered":""},"modified":"2024-12-27T07:22:04","modified_gmt":"2024-12-26T23:22:04","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e6%89%93%e4%b9%b1%e5%88%97%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/983741.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u6253\u4e71\u5217\u8868"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24211652\/c1d27119-d859-44b6-98f8-8b729d48cdb1.webp\" alt=\"python\u4e2d\u5982\u4f55\u6253\u4e71\u5217\u8868\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u6253\u4e71\u5217\u8868\u7684\u5e38\u7528\u65b9\u6cd5\u6709\u51e0\u79cd\uff0c\u5305\u62ec\u4f7f\u7528<code>random.shuffle()<\/code>\u3001<code>random.sample()<\/code>\u3001\u4ee5\u53ca\u4f7f\u7528<code>numpy<\/code>\u5e93\u7b49\u3002<strong><code>random.shuffle()<\/code>\u76f4\u63a5\u5728\u539f\u5217\u8868\u4e0a\u8fdb\u884c\u4fee\u6539\u3001<code>random.sample()<\/code>\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u6253\u4e71\u540e\u7684\u5217\u8868\u3001\u4f7f\u7528<code>numpy<\/code>\u53ef\u4ee5\u5728\u6570\u636e\u5206\u6790\u73af\u5883\u4e2d\u66f4\u6709\u6548\u5730\u64cd\u4f5c\u3002<\/strong>\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u51e0\u79cd\u65b9\u6cd5\u53ca\u5176\u4f7f\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528<code>random.shuffle()<\/code>\u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>random.shuffle()<\/code>\u662fPython\u5185\u7f6e\u7684<code>random<\/code>\u6a21\u5757\u4e2d\u7684\u4e00\u4e2a\u51fd\u6570\uff0c\u7528\u4e8e\u5c06\u5217\u8868\u4e2d\u7684\u5143\u7d20\u968f\u673a\u6253\u4e71\u3002\u5b83\u76f4\u63a5\u4fee\u6539\u539f\u5217\u8868\uff0c\u4e0d\u4f1a\u8fd4\u56de\u65b0\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u65b9\u6cd5<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>my_list = [1, 2, 3, 4, 5]<\/p>\n<p>random.shuffle(my_list)<\/p>\n<p>print(my_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5bfc\u5165\u4e86<code>random<\/code>\u6a21\u5757\uff0c\u7136\u540e\u4f7f\u7528<code>random.shuffle()<\/code>\u51fd\u6570\u5bf9<code>my_list<\/code>\u8fdb\u884c\u6253\u4e71\u3002\u6ce8\u610f\uff0c<code>shuffle()<\/code>\u76f4\u63a5\u5728\u539f\u5217\u8868\u4e0a\u8fdb\u884c\u64cd\u4f5c\uff0c\u56e0\u6b64\u4e0d\u4f1a\u751f\u6210\u65b0\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h4>2. \u7279\u70b9\u4e0e\u6ce8\u610f\u4e8b\u9879<\/h4>\n<\/p>\n<ul>\n<li><strong>\u6548\u7387\u9ad8<\/strong>\uff1a\u7531\u4e8e\u5b83\u5728\u539f\u5730\u6d17\u724c\uff0c\u4e0d\u9700\u8981\u989d\u5916\u7684\u5185\u5b58\u7a7a\u95f4\u3002<\/li>\n<li><strong>\u4e0d\u53ef\u9006\u64cd\u4f5c<\/strong>\uff1a<code>shuffle()<\/code>\u4f1a\u6539\u53d8\u539f\u5217\u8868\uff0c\u5982\u679c\u9700\u8981\u4fdd\u7559\u539f\u5217\u8868\uff0c\u8bb0\u5f97\u5148\u590d\u5236\u4e00\u4efd\u3002<\/li>\n<li><strong>\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5<\/strong>\uff1a\u5728\u9700\u8981\u5bf9\u5217\u8868\u8fdb\u884c\u968f\u673a\u6392\u5e8f\u7684\u60c5\u51b5\u4e0b\uff0c<code>shuffle()<\/code>\u662f\u6700\u7b80\u4fbf\u7684\u9009\u62e9\u3002<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001\u4f7f\u7528<code>random.sample()<\/code>\u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>random.sample()<\/code>\u51fd\u6570\u7528\u4e8e\u4ece\u6307\u5b9a\u7684\u5e8f\u5217\u4e2d\u968f\u673a\u83b7\u53d6\u6307\u5b9a\u957f\u5ea6\u7684\u7247\u6bb5\uff0c\u5e76\u4ee5\u5217\u8868\u5f62\u5f0f\u8fd4\u56de\u3002\u5b83\u4e0d\u4f1a\u4fee\u6539\u539f\u5e8f\u5217\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u65b9\u6cd5<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>my_list = [1, 2, 3, 4, 5]<\/p>\n<p>shuffled_list = random.sample(my_list, len(my_list))<\/p>\n<p>print(shuffled_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>random.sample()<\/code>\u4ece<code>my_list<\/code>\u4e2d\u968f\u673a\u62bd\u53d6\u4e0e\u5217\u8868\u957f\u5ea6\u76f8\u540c\u7684\u5143\u7d20\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u6253\u4e71\u540e\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h4>2. \u7279\u70b9\u4e0e\u6ce8\u610f\u4e8b\u9879<\/h4>\n<\/p>\n<ul>\n<li><strong>\u4e0d\u6539\u53d8\u539f\u5217\u8868<\/strong>\uff1a<code>sample()<\/code>\u4e0d\u4f1a\u4fee\u6539\u539f\u5217\u8868\uff0c\u800c\u662f\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u5217\u8868\u3002<\/li>\n<li><strong>\u7075\u6d3b\u6027\u9ad8<\/strong>\uff1a\u53ef\u4ee5\u6307\u5b9a\u8fd4\u56de\u5217\u8868\u7684\u957f\u5ea6\uff0c\u975e\u5e38\u7075\u6d3b\u3002<\/li>\n<li><strong>\u9002\u7528\u4e8e\u4e0d\u5e0c\u671b\u6539\u53d8\u539f\u6570\u636e<\/strong>\uff1a\u5982\u679c\u9700\u8981\u4fdd\u6301\u539f\u5217\u8868\u4e0d\u53d8\uff0c\u53ef\u4ee5\u9009\u62e9\u8fd9\u79cd\u65b9\u6cd5\u3002<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001\u4f7f\u7528<code>numpy<\/code>\u5e93<\/h3>\n<\/p>\n<p><p><code>numpy<\/code>\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u503c\u8ba1\u7b97\u5e93\uff0c\u5728\u5bf9\u6570\u7ec4\u8fdb\u884c\u64cd\u4f5c\u65f6\u975e\u5e38\u9ad8\u6548\u3002\u867d\u7136<code>numpy<\/code>\u4e0d\u662f\u4e13\u95e8\u7528\u4e8e\u5904\u7406\u5217\u8868\u7684\uff0c\u4f46\u5b83\u63d0\u4f9b\u4e86\u5bf9\u6570\u7ec4\u8fdb\u884c\u6253\u4e71\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u65b9\u6cd5<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>my_list = [1, 2, 3, 4, 5]<\/p>\n<p>np.random.shuffle(my_list)<\/p>\n<p>print(my_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>numpy.random.shuffle()<\/code>\u4e0e<code>random.shuffle()<\/code>\u7c7b\u4f3c\uff0c\u90fd\u662f\u76f4\u63a5\u5bf9\u539f\u5bf9\u8c61\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h4>2. \u7279\u70b9\u4e0e\u6ce8\u610f\u4e8b\u9879<\/h4>\n<\/p>\n<ul>\n<li><strong>\u9762\u5411\u6570\u7ec4<\/strong>\uff1a\u66f4\u9002\u5408\u5bf9\u5927\u578b\u6570\u636e\u96c6\u6216\u591a\u7ef4\u6570\u7ec4\u8fdb\u884c\u64cd\u4f5c\u3002<\/li>\n<li><strong>\u6548\u7387\u9ad8<\/strong>\uff1a\u5bf9\u6570\u503c\u578b\u6570\u636e\u7684\u5904\u7406\u901f\u5ea6\u66f4\u5feb\u3002<\/li>\n<li><strong>\u9700\u8981\u989d\u5916\u5b89\u88c5<code>numpy<\/code><\/strong>\uff1a\u5982\u679c\u6ca1\u6709\u5b89\u88c5<code>numpy<\/code>\uff0c\u9700\u8981\u5148\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<p><h3>\u56db\u3001\u5176\u4ed6\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u5176\u4ed6\u6280\u5de7\u6765\u5b9e\u73b0\u5217\u8868\u7684\u6253\u4e71\u3002<\/p>\n<\/p>\n<p><h4>1. \u624b\u52a8\u4ea4\u6362\u5143\u7d20<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684\u7b97\u6cd5\uff0c\u624b\u52a8\u4ea4\u6362\u5217\u8868\u4e2d\u7684\u5143\u7d20\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u6253\u4e71\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>def manual_shuffle(lst):<\/p>\n<p>    n = len(lst)<\/p>\n<p>    for i in range(n):<\/p>\n<p>        j = random.randint(0, n - 1)<\/p>\n<p>        lst[i], lst[j] = lst[j], lst[i]<\/p>\n<p>my_list = [1, 2, 3, 4, 5]<\/p>\n<p>manual_shuffle(my_list)<\/p>\n<p>print(my_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u7ed3\u5408\u6392\u5e8f\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7<code>sorted()<\/code>\u51fd\u6570\u7ed3\u5408\u968f\u673a\u6570\u5b9e\u73b0\u6253\u4e71\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>my_list = [1, 2, 3, 4, 5]<\/p>\n<p>shuffled_list = sorted(my_list, key=lambda x: random.random())<\/p>\n<p>print(shuffled_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u5229\u7528\u4e86\u6392\u5e8f\u7684\u7279\u6027\uff0c\u4f46\u6548\u7387\u4e0d\u5982<code>random.shuffle()<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u6253\u4e71\u5728\u8bb8\u591a\u573a\u666f\u4e2d\u90fd\u6709\u5e94\u7528\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u4ee5\u4e0b\u51e0\u79cd\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u6570\u636e\u5206\u5272<\/strong>\uff1a\u5728<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u4e2d\uff0c\u5e38\u9700\u8981\u968f\u673a\u6253\u4e71\u6570\u636e\u96c6\u4ee5\u8fdb\u884c\u8bad\u7ec3\u548c\u6d4b\u8bd5\u96c6\u7684\u5206\u5272\u3002<\/li>\n<li><strong>\u6e38\u620f\u5f00\u53d1<\/strong>\uff1a\u5728\u5361\u724c\u6e38\u620f\u4e2d\uff0c\u6d17\u724c\u529f\u80fd\u9700\u8981\u968f\u673a\u6253\u4e71\u5361\u724c\u987a\u5e8f\u3002<\/li>\n<li><strong>\u5b9e\u9a8c\u8bbe\u8ba1<\/strong>\uff1a\u5728\u5b9e\u9a8c\u4e2d\uff0c\u4e3a\u907f\u514d\u987a\u5e8f\u6548\u5e94\uff0c\u901a\u5e38\u9700\u8981\u968f\u673a\u5316\u523a\u6fc0\u6216\u5b9e\u9a8c\u6750\u6599\u7684\u5448\u73b0\u987a\u5e8f\u3002<\/li>\n<\/ul>\n<p><h3>\u516d\u3001\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u9700\u6c42\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5982\u679c\u9700\u8981\u76f4\u63a5\u4fee\u6539\u539f\u5217\u8868\uff0c<code>random.shuffle()<\/code>\u662f\u6700\u7b80\u5355\u548c\u76f4\u63a5\u7684\u65b9\u6cd5\u3002<\/li>\n<li>\u5982\u679c\u9700\u8981\u4fdd\u7559\u539f\u5217\u8868\u4e0d\u53d8\u5e76\u5f97\u5230\u4e00\u4e2a\u65b0\u7684\u6253\u4e71\u5217\u8868\uff0c<code>random.sample()<\/code>\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/li>\n<li>\u5bf9\u4e8e\u5927\u578b\u6570\u636e\u96c6\u6216\u9700\u8981\u5bf9\u591a\u7ef4\u6570\u7ec4\u8fdb\u884c\u64cd\u4f5c\uff0c<code>numpy<\/code>\u63d0\u4f9b\u4e86\u66f4\u9ad8\u6548\u7684\u5b9e\u73b0\u3002<\/li>\n<\/ul>\n<p><h3>\u4e03\u3001\u6027\u80fd\u8003\u8651<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u975e\u5e38\u5927\u7684\u5217\u8868\u65f6\uff0c\u6027\u80fd\u53ef\u80fd\u6210\u4e3a\u4e00\u4e2a\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6027\u80fd\u4f18\u5316\u7684\u5efa\u8bae\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u590d\u5236<\/strong>\uff1a\u5982\u679c\u4e0d\u9700\u8981\u4fdd\u7559\u539f\u5217\u8868\uff0c\u4e0d\u8981\u4f7f\u7528\u4f1a\u751f\u6210\u65b0\u5217\u8868\u7684\u65b9\u6cd5\u3002<\/li>\n<li><strong>\u4f7f\u7528<code>numpy<\/code><\/strong>\uff1a\u5728\u5904\u7406\u6570\u503c\u578b\u6570\u636e\u65f6\uff0c<code>numpy<\/code>\u7684\u6027\u80fd\u901a\u5e38\u4f18\u4e8e\u7eafPython\u5b9e\u73b0\u3002<\/li>\n<li><strong>\u6ce8\u610f\u5185\u5b58\u4f7f\u7528<\/strong>\uff1a\u5728\u5185\u5b58\u6709\u9650\u7684\u73af\u5883\u4e2d\uff0c\u8981\u6ce8\u610f\u65b9\u6cd5\u9009\u62e9\u662f\u5426\u4f1a\u5bfc\u81f4\u4e0d\u5fc5\u8981\u7684\u5185\u5b58\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u6253\u4e71\u5217\u8868\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4f9b\u9009\u62e9\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\u548c\u9002\u7528\u573a\u666f\u3002\u5173\u952e\u5728\u4e8e\u6839\u636e\u5177\u4f53\u9700\u6c42\u548c\u73af\u5883\u9009\u62e9\u5408\u9002\u7684\u65b9\u6848\u3002<strong>\u5bf9\u4e8e\u5927\u591a\u6570\u7b80\u5355\u5e94\u7528\uff0c<code>random.shuffle()<\/code>\u662f\u6700\u63a8\u8350\u7684\u65b9\u6cd5<\/strong>\uff0c\u4f46\u5728\u9700\u8981\u4fdd\u7559\u539f\u5217\u8868\u6216\u5728\u6570\u636e\u5206\u6790\u73af\u5883\u4e2d\u64cd\u4f5c\u65f6\uff0c<code>random.sample()<\/code>\u548c<code>numpy<\/code>\u662f\u66f4\u597d\u7684\u9009\u62e9\u3002\u901a\u8fc7\u7406\u89e3\u6bcf\u79cd\u65b9\u6cd5\u7684\u7279\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u8fdb\u884c\u6570\u636e\u5904\u7406\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u968f\u673a\u6253\u4e71\u4e00\u4e2a\u5217\u8868\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>random<\/code>\u6a21\u5757\u4e2d\u7684<code>shuffle()<\/code>\u51fd\u6570\u6765\u6253\u4e71\u5217\u8868\u3002\u9996\u5148\u9700\u8981\u5bfc\u5165<code>random<\/code>\u6a21\u5757\uff0c\u7136\u540e\u8c03\u7528<code>random.shuffle(your_list)<\/code>\uff0c\u8fd9\u4f1a\u5bf9\u5217\u8868\u8fdb\u884c\u539f\u5730\u6253\u4e71\uff0c\u4e0d\u8fd4\u56de\u65b0\u7684\u5217\u8868\u3002<\/p>\n<p><strong>\u4f7f\u7528numpy\u5e93\u662f\u5426\u53ef\u4ee5\u6253\u4e71\u5217\u8868\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u4f7f\u7528<code>numpy<\/code>\u5e93\u4e5f\u53ef\u4ee5\u65b9\u4fbf\u5730\u6253\u4e71\u5217\u8868\u3002\u901a\u8fc7<code>numpy.random.shuffle()<\/code>\u51fd\u6570\uff0c\u4f60\u53ef\u4ee5\u5c06\u5217\u8868\u8f6c\u6362\u4e3aNumPy\u6570\u7ec4\u5e76\u8fdb\u884c\u6253\u4e71\u3002\u8fd9\u5728\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u65f6\u5c24\u5176\u6709\u7528\uff0c\u56e0\u4e3a<code>numpy<\/code>\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\u3002<\/p>\n<p><strong>\u6253\u4e71\u5217\u8868\u540e\u5982\u4f55\u786e\u4fdd\u67d0\u4e9b\u5143\u7d20\u7684\u4f4d\u7f6e\u4e0d\u53d8\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5217\u8868\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u9996\u5148\u5c06\u4e0d\u9700\u8981\u6253\u4e71\u7684\u5143\u7d20\u63d0\u53d6\u51fa\u6765\uff0c\u63a5\u7740\u6253\u4e71\u5269\u4f59\u7684\u5143\u7d20\uff0c\u7136\u540e\u518d\u5c06\u4e0d\u9700\u8981\u6253\u4e71\u7684\u5143\u7d20\u63d2\u5165\u5230\u76f8\u5e94\u7684\u4f4d\u7f6e\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728\u4fdd\u6301\u67d0\u4e9b\u5143\u7d20\u4e0d\u53d8\u7684\u60c5\u51b5\u4e0b\uff0c\u6253\u4e71\u5176\u4ed6\u5143\u7d20\u7684\u987a\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u6253\u4e71\u5217\u8868\u7684\u5e38\u7528\u65b9\u6cd5\u6709\u51e0\u79cd\uff0c\u5305\u62ec\u4f7f\u7528random.shuffle()\u3001random.sample [&hellip;]","protected":false},"author":3,"featured_media":983752,"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\/983741"}],"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=983741"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/983741\/revisions"}],"predecessor-version":[{"id":983754,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/983741\/revisions\/983754"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/983752"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=983741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=983741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=983741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}