{"id":989408,"date":"2024-12-27T08:11:23","date_gmt":"2024-12-27T00:11:23","guid":{"rendered":""},"modified":"2024-12-27T08:11:26","modified_gmt":"2024-12-27T00:11:26","slug":"python%e5%a6%82%e4%bd%95%e9%9a%8f%e6%9c%ba%e6%8a%bd%e5%8f%96%e5%85%83%e7%b4%a0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/989408.html","title":{"rendered":"python\u5982\u4f55\u968f\u673a\u62bd\u53d6\u5143\u7d20"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25064625\/a4be3630-9dd0-4e30-9e8d-bb521423a69f.webp\" alt=\"python\u5982\u4f55\u968f\u673a\u62bd\u53d6\u5143\u7d20\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u968f\u673a\u62bd\u53d6\u5143\u7d20\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528random\u6a21\u5757\u4e2d\u7684choice()\u51fd\u6570\u3001\u4f7f\u7528sample()\u51fd\u6570\u3001\u4ee5\u53ca\u4f7f\u7528randint()\u51fd\u6570\u3002<\/strong>\u5176\u4e2d\uff0c<strong>choice()\u51fd\u6570\u53ef\u4ee5\u4ece\u5e8f\u5217\u4e2d\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u5143\u7d20\uff0csample()\u51fd\u6570\u53ef\u4ee5\u4ece\u5e8f\u5217\u4e2d\u968f\u673a\u9009\u62e9\u591a\u4e2a\u5143\u7d20\u4e14\u4e0d\u91cd\u590d\uff0c\u800crandint()\u51fd\u6570\u53ef\u4ee5\u7528\u4e8e\u751f\u6210\u968f\u673a\u7d22\u5f15\u4ee5\u4ece\u5217\u8868\u4e2d\u62bd\u53d6\u5143\u7d20<\/strong>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e09\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528CHOICE()\u51fd\u6570<\/p>\n<\/p>\n<p><p><code>choice()<\/code>\u51fd\u6570\u662fPython\u4e2drandom\u6a21\u5757\u63d0\u4f9b\u7684\u4e00\u79cd\u65b9\u6cd5\uff0c\u7528\u4e8e\u4ece\u5e8f\u5217\uff08\u5982\u5217\u8868\u3001\u5143\u7ec4\u6216\u5b57\u7b26\u4e32\uff09\u4e2d\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u5143\u7d20\u3002\u5b83\u7684\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u5bfc\u5165random\u6a21\u5757\u5e76\u8c03\u7528choice()\u51fd\u6570\u5373\u53ef\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5bfc\u5165random\u6a21\u5757<\/p>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u5bfc\u5165random\u6a21\u5757\u3002random\u6a21\u5757\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u56e0\u6b64\u65e0\u9700\u989d\u5916\u5b89\u88c5\u3002<\/li>\n<\/p>\n<\/ol>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528choice()\u51fd\u6570<\/p>\n<p>\u4f7f\u7528choice()\u51fd\u6570\u65f6\uff0c\u9700\u8981\u5c06\u4e00\u4e2a\u5e8f\u5217\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9\u5b83\u3002\u8be5\u51fd\u6570\u4f1a\u8fd4\u56de\u5e8f\u5217\u4e2d\u7684\u4e00\u4e2a\u968f\u673a\u5143\u7d20\u3002<\/li>\n<\/p>\n<\/ol>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>random_element = random.choice(my_list)<\/p>\n<p>print(f&quot;Randomly selected element: {random_element}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>random.choice(my_list)<\/code>\u4ece\u5217\u8868my_list\u4e2d\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u5143\u7d20\uff0c\u5e76\u5c06\u5176\u6253\u5370\u51fa\u6765\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528\u7b80\u5355\uff0c\u9002\u7528\u4e8e\u4ece\u5c0f\u578b\u5e8f\u5217\u4e2d\u62bd\u53d6\u4e00\u4e2a\u5143\u7d20\u3002<\/li>\n<\/ul>\n<p><p><strong>\u6ce8\u610f\u4e8b\u9879<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u53ea\u80fd\u7528\u4e8e\u5e8f\u5217\u7c7b\u578b\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5982\u5217\u8868\u3001\u5143\u7ec4\u3001\u5b57\u7b26\u4e32\u7b49\u3002<\/li>\n<\/ul>\n<p><p>\u4e8c\u3001\u4f7f\u7528SAMPLE()\u51fd\u6570<\/p>\n<\/p>\n<p><p><code>sample()<\/code>\u51fd\u6570\u4e5f\u662frandom\u6a21\u5757\u4e2d\u7684\u4e00\u4e2a\u51fd\u6570\uff0c\u7528\u4e8e\u4ece\u5e8f\u5217\u4e2d\u968f\u673a\u9009\u62e9\u591a\u4e2a\u4e0d\u540c\u7684\u5143\u7d20\u3002\u4e0echoice()\u4e0d\u540c\uff0csample()\u4e0d\u4f1a\u91cd\u590d\u9009\u62e9\u76f8\u540c\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528sample()\u51fd\u6570\u9009\u62e9\u591a\u4e2a\u5143\u7d20<\/p>\n<p>sample()\u51fd\u6570\u9700\u8981\u4e24\u4e2a\u53c2\u6570\uff1a\u4e00\u4e2a\u662f\u5f85\u9009\u5e8f\u5217\uff0c\u53e6\u4e00\u4e2a\u662f\u9700\u8981\u9009\u62e9\u7684\u5143\u7d20\u6570\u91cf\u3002<\/li>\n<\/p>\n<\/ol>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>random_elements = random.sample(my_list, 3)<\/p>\n<p>print(f&quot;Randomly selected elements: {random_elements}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>random.sample(my_list, 3)<\/code>\u4ece\u5217\u8868my_list\u4e2d\u968f\u673a\u9009\u62e9\u4e09\u4e2a\u4e0d\u540c\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u9002\u7528\u4e8e\u9700\u8981\u4ece\u5e8f\u5217\u4e2d\u9009\u62e9\u591a\u4e2a\u4e0d\u91cd\u590d\u5143\u7d20\u7684\u60c5\u51b5\u3002<\/li>\n<\/ul>\n<p><p><strong>\u6ce8\u610f\u4e8b\u9879<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5982\u679c\u9009\u62e9\u7684\u5143\u7d20\u6570\u91cf\u8d85\u8fc7\u5e8f\u5217\u7684\u957f\u5ea6\uff0c\u4f1a\u5f15\u53d1ValueError\u5f02\u5e38\u3002<\/li>\n<\/ul>\n<p><p>\u4e09\u3001\u4f7f\u7528RANDINT()\u51fd\u6570<\/p>\n<\/p>\n<p><p><code>randint()<\/code>\u51fd\u6570\u7528\u4e8e\u751f\u6210\u4e00\u4e2a\u968f\u673a\u6574\u6570\u3002\u53ef\u4ee5\u7ed3\u5408\u5217\u8868\u7d22\u5f15\u6765\u5b9e\u73b0\u4ece\u5217\u8868\u4e2d\u968f\u673a\u9009\u62e9\u5143\u7d20\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528randint()\u751f\u6210\u968f\u673a\u7d22\u5f15<\/p>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u786e\u5b9a\u5e8f\u5217\u7684\u957f\u5ea6\uff0c\u7136\u540e\u4f7f\u7528randint()\u751f\u6210\u4e00\u4e2a\u8303\u56f4\u57280\u5230\u957f\u5ea6\u51cf\u4e00\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\uff0c\u4f5c\u4e3a\u7d22\u5f15\u6765\u9009\u62e9\u5143\u7d20\u3002<\/li>\n<\/p>\n<\/ol>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>index = random.randint(0, len(my_list) - 1)<\/p>\n<p>random_element = my_list[index]<\/p>\n<p>print(f&quot;Randomly selected element using index: {random_element}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>random.randint(0, len(my_list) - 1)<\/code>\u751f\u6210\u4e00\u4e2a\u968f\u673a\u7d22\u5f15\uff0c\u7136\u540e\u7528\u8fd9\u4e2a\u7d22\u5f15\u4ece\u5217\u8868\u4e2d\u9009\u53d6\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u9002\u7528\u4e8e\u9700\u8981\u63a7\u5236\u968f\u673a\u8fc7\u7a0b\u7684\u573a\u666f\u3002<\/li>\n<\/ul>\n<p><p><strong>\u6ce8\u610f\u4e8b\u9879<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u9700\u8981\u786e\u4fdd\u7d22\u5f15\u8303\u56f4\u6b63\u786e\uff0c\u4ee5\u514d\u8d85\u51fa\u5e8f\u5217\u957f\u5ea6\u3002<\/li>\n<\/ul>\n<p><p>\u56db\u3001\u5176\u4ed6\u968f\u673a\u9009\u62e9\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u4e09\u79cd\u5e38\u7528\u65b9\u6cd5\uff0cPython\u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u4e00\u4e9b\u968f\u673a\u9009\u62e9\u7684\u6280\u5de7\uff0c\u4f8b\u5982\u901a\u8fc7shuffle()\u51fd\u6570\u968f\u673a\u6253\u4e71\u5217\u8868\u987a\u5e8f\u540e\u9009\u62e9\u7b2c\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528shuffle()\u51fd\u6570<\/li>\n<\/ol>\n<p><p><code>shuffle()<\/code>\u51fd\u6570\u7528\u4e8e\u968f\u673a\u6253\u4e71\u5e8f\u5217\u4e2d\u7684\u5143\u7d20\u987a\u5e8f\u3002\u53ef\u4ee5\u7ed3\u5408\u5207\u7247\u64cd\u4f5c\u6765\u9009\u62e9\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>random.shuffle(my_list)<\/p>\n<p>random_element = my_list[0]<\/p>\n<p>print(f&quot;Randomly selected element after shuffling: {random_element}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>random.shuffle(my_list)<\/code>\u6253\u4e71\u4e86\u5217\u8868my_list\u7684\u987a\u5e8f\uff0c\u7136\u540e\u9009\u62e9\u4e86\u7b2c\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u53ef\u4ee5\u7528\u4e8e\u9700\u8981\u5b8c\u5168\u968f\u673a\u5316\u5e8f\u5217\u987a\u5e8f\u7684\u573a\u666f\u3002<\/li>\n<\/ul>\n<p><p><strong>\u6ce8\u610f\u4e8b\u9879<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>shuffle()\u4f1a\u4fee\u6539\u539f\u5e8f\u5217\uff0c\u5982\u679c\u9700\u8981\u4fdd\u7559\u539f\u5e8f\u5217\uff0c\u53ef\u4ee5\u5148\u590d\u5236\u4e00\u4efd\u3002<\/li>\n<\/ul>\n<p><p>\u4e94\u3001\u5e94\u7528\u573a\u666f\u548c\u9009\u62e9<\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u5177\u4f53\u65b9\u6cd5\u65f6\uff0c\u5e94\u6839\u636e\u5b9e\u9645\u9700\u6c42\u548c\u5e94\u7528\u573a\u666f\u8fdb\u884c\u9009\u62e9\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u4ece\u5e8f\u5217\u4e2d\u9009\u62e9\u4e00\u4e2a\u5143\u7d20\uff1a<strong>\u4f7f\u7528choice()\u51fd\u6570\u7b80\u5355\u6709\u6548\u3002<\/strong><\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u4ece\u5e8f\u5217\u4e2d\u9009\u62e9\u591a\u4e2a\u4e0d\u540c\u5143\u7d20\uff1a<strong>\u4f7f\u7528sample()\u51fd\u6570\u80fd\u591f\u786e\u4fdd\u4e0d\u91cd\u590d\u9009\u62e9\u3002<\/strong><\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u9700\u8981\u66f4\u591a\u968f\u673a\u63a7\u5236\uff1a<strong>\u53ef\u4ee5\u4f7f\u7528randint()\u7ed3\u5408\u7d22\u5f15\u7684\u65b9\u5f0f\u3002<\/strong><\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u9700\u8981\u5b8c\u5168\u6253\u4e71\u5e8f\u5217\u987a\u5e8f\uff1a<strong>\u4f7f\u7528shuffle()\u51fd\u6570\u3002<\/strong><\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u7528\u4e8e\u968f\u673a\u62bd\u53d6\u5143\u7d20\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u6548\u7387\u548c\u53ef\u8bfb\u6027\u3002\u5728\u4f7f\u7528\u65f6\uff0c\u9700\u6ce8\u610f\u5e8f\u5217\u7c7b\u578b\u3001\u9009\u62e9\u7684\u5143\u7d20\u6570\u91cf\u4ee5\u53ca\u662f\u5426\u5141\u8bb8\u91cd\u590d\u7b49\u56e0\u7d20\uff0c\u4ee5\u907f\u514d\u8fd0\u884c\u65f6\u9519\u8bef\u3002\u65e0\u8bba\u662fchoice\u3001sample\u3001randint\u8fd8\u662fshuffle\uff0c\u5404\u6709\u5176\u9002\u7528\u573a\u666f\u548c\u4f18\u7f3a\u70b9\u3002\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u5728\u65e5\u5e38\u7f16\u7a0b\u4e2d\u7075\u6d3b\u5e94\u5bf9\u5404\u79cd\u968f\u673a\u9009\u62e9\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u968f\u673a\u62bd\u53d6\u5217\u8868\u4e2d\u7684\u5143\u7d20\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>random<\/code>\u6a21\u5757\u6765\u5b9e\u73b0\u968f\u673a\u62bd\u53d6\u5143\u7d20\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u4f7f\u7528<code>random.choice()<\/code>\u51fd\u6570\u53ef\u4ee5\u4ece\u4e00\u4e2a\u5e8f\u5217\u4e2d\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u5143\u7d20\u3002\u4f8b\u5982\uff0c<code>random.choice(my_list)<\/code>\u5c06\u4ece<code>my_list<\/code>\u4e2d\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u5143\u7d20\u3002\u82e5\u9700\u8981\u62bd\u53d6\u591a\u4e2a\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528<code>random.sample()<\/code>\uff0c\u5b83\u5141\u8bb8\u6307\u5b9a\u62bd\u53d6\u7684\u6570\u91cf\uff0c\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u968f\u673a\u9009\u4e2d\u5143\u7d20\u7684\u5217\u8868\u3002<\/p>\n<p><strong>\u4f7f\u7528random\u6a21\u5757\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4e8b\u9879\uff1f<\/strong><br \/>\u5728\u4f7f\u7528<code>random<\/code>\u6a21\u5757\u8fdb\u884c\u968f\u673a\u62bd\u53d6\u65f6\uff0c\u9700\u6ce8\u610f\u6240\u62bd\u53d6\u7684\u5143\u7d20\u6570\u91cf\u4e0d\u80fd\u8d85\u8fc7\u5e8f\u5217\u7684\u957f\u5ea6\u3002\u5982\u679c\u5c1d\u8bd5\u4ece\u4e00\u4e2a\u957f\u5ea6\u8f83\u5c0f\u7684\u5e8f\u5217\u4e2d\u62bd\u53d6\u66f4\u591a\u5143\u7d20\uff0c\u4f1a\u5f15\u53d1<code>ValueError<\/code>\u3002\u6b64\u5916\uff0c<code>random.seed()<\/code>\u51fd\u6570\u53ef\u4ee5\u8bbe\u7f6e\u968f\u673a\u79cd\u5b50\uff0c\u4ece\u800c\u5728\u6bcf\u6b21\u8fd0\u884c\u7a0b\u5e8f\u65f6\u5f97\u5230\u76f8\u540c\u7684\u968f\u673a\u7ed3\u679c\uff0c\u8fd9\u5728\u8c03\u8bd5\u6216\u6d4b\u8bd5\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u6709\u6743\u91cd\u7684\u968f\u673a\u62bd\u53d6\uff1f<\/strong><br \/>\u5982\u679c\u9700\u8981\u6839\u636e\u4e0d\u540c\u7684\u6743\u91cd\u968f\u673a\u62bd\u53d6\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528<code>random.choices()<\/code>\u51fd\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u5141\u8bb8\u4f60\u4e3a\u6bcf\u4e2a\u5143\u7d20\u6307\u5b9a\u6743\u91cd\uff0c\u4ece\u800c\u5f71\u54cd\u62bd\u53d6\u7684\u6982\u7387\u3002\u4f8b\u5982\uff0c<code>random.choices(my_list, weights=[0.1, 0.5, 0.4])<\/code>\u5c06\u6839\u636e\u7ed9\u5b9a\u7684\u6743\u91cd\u968f\u673a\u9009\u62e9\u5143\u7d20\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u7b2c\u4e8c\u4e2a\u5143\u7d20\u66f4\u6709\u53ef\u80fd\u88ab\u9009\u4e2d\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u4e8e\u9700\u8981\u8003\u8651\u4e0d\u540c\u5143\u7d20\u91cd\u8981\u6027\u7684\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u968f\u673a\u62bd\u53d6\u5143\u7d20\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528random\u6a21\u5757\u4e2d\u7684choice()\u51fd\u6570\u3001\u4f7f\u7528sample( [&hellip;]","protected":false},"author":3,"featured_media":989418,"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\/989408"}],"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=989408"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/989408\/revisions"}],"predecessor-version":[{"id":989420,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/989408\/revisions\/989420"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/989418"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=989408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=989408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=989408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}