{"id":1122648,"date":"2025-01-08T19:23:18","date_gmt":"2025-01-08T11:23:18","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1122648.html"},"modified":"2025-01-08T19:23:20","modified_gmt":"2025-01-08T11:23:20","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e5%ad%97%e7%ac%a6%e4%b8%b2%e9%87%8d%e6%96%b0%e6%89%93%e4%b9%b1","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1122648.html","title":{"rendered":"Python\u5982\u4f55\u5c06\u5b57\u7b26\u4e32\u91cd\u65b0\u6253\u4e71"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084431\/39d73bfc-0168-4e44-bc30-98dd1a2b778b.webp\" alt=\"Python\u5982\u4f55\u5c06\u5b57\u7b26\u4e32\u91cd\u65b0\u6253\u4e71\" \/><\/p>\n<p><p> <strong>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5c06\u5b57\u7b26\u4e32\u91cd\u65b0\u6253\u4e71\uff0c\u5305\u62ec\u4f7f\u7528\u968f\u673a\u6a21\u5757\u3001\u901a\u8fc7\u5217\u8868\u64cd\u4f5c\u3001\u4ee5\u53ca\u4f7f\u7528numpy\u5e93\u7b49\u3002\u4f7f\u7528random\u6a21\u5757\u3001\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5217\u8868\u518d\u6253\u4e71\u3001\u5229\u7528numpy\u5e93\u7684\u968f\u673a\u5316\u529f\u80fd<\/strong>\u3002\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u4e14\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4f7f\u7528Python\u7684<code>random<\/code>\u6a21\u5757\u3002\u901a\u8fc7\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5217\u8868\uff0c\u7136\u540e\u4f7f\u7528<code>random.shuffle()<\/code>\u65b9\u6cd5\u6765\u6253\u4e71\u5217\u8868\uff0c\u6700\u540e\u518d\u5c06\u5217\u8868\u8f6c\u6362\u56de\u5b57\u7b26\u4e32\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u5b57\u7b26\u4e32\u7684\u91cd\u65b0\u6392\u5217\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u5b57\u7b26\u4e32&quot;Python&quot;\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u5c06\u5176\u6253\u4e71\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>def shuffle_string(s):<\/p>\n<p>    str_list = list(s)<\/p>\n<p>    random.shuffle(str_list)<\/p>\n<p>    return &#39;&#39;.join(str_list)<\/p>\n<p>shuffled_string = shuffle_string(&quot;Python&quot;)<\/p>\n<p>print(shuffled_string)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u4e00\u4e2a\u5b57\u7b26\u5217\u8868\uff0c\u7136\u540e\u4f7f\u7528<code>random.shuffle()<\/code>\u51fd\u6570\u5bf9\u5217\u8868\u8fdb\u884c\u6253\u4e71\uff0c\u6700\u540e\u518d\u5c06\u5217\u8868\u8f6c\u6362\u56de\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528random\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>random<\/code>\u6a21\u5757\u662fPython\u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u6a21\u5757\uff0c\u53ef\u4ee5\u751f\u6210\u4f2a\u968f\u673a\u6570\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a\u6a21\u5757\u6765\u6253\u4e71\u5b57\u7b26\u4e32\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5217\u8868<\/strong>\uff1a\u7531\u4e8e\u5b57\u7b26\u4e32\u662f\u4e0d\u53ef\u53d8\u7684\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5176\u8f6c\u6362\u4e3a\u5217\u8868\uff0c\u5217\u8868\u662f\u53ef\u53d8\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528<code>random.shuffle()<\/code>\u5bf9\u5176\u8fdb\u884c\u6253\u4e71\u3002<\/li>\n<li><strong>\u6253\u4e71\u5217\u8868<\/strong>\uff1a\u4f7f\u7528<code>random.shuffle()<\/code>\u51fd\u6570\u5bf9\u5217\u8868\u8fdb\u884c\u6253\u4e71\u3002<\/li>\n<li><strong>\u5c06\u5217\u8868\u8f6c\u6362\u56de\u5b57\u7b26\u4e32<\/strong>\uff1a\u6700\u540e\uff0c\u5c06\u6253\u4e71\u540e\u7684\u5217\u8868\u91cd\u65b0\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>def shuffle_string(s):<\/p>\n<p>    str_list = list(s)<\/p>\n<p>    random.shuffle(str_list)<\/p>\n<p>    return &#39;&#39;.join(str_list)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>original_string = &quot;Python&quot;<\/p>\n<p>shuffled_string = shuffle_string(original_string)<\/p>\n<p>print(f&quot;\u539f\u59cb\u5b57\u7b26\u4e32: {original_string}&quot;)<\/p>\n<p>print(f&quot;\u6253\u4e71\u540e\u7684\u5b57\u7b26\u4e32: {shuffled_string}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>random.shuffle()<\/code>\u51fd\u6570\u76f4\u63a5\u5bf9\u5217\u8868\u8fdb\u884c\u539f\u5730\u6253\u4e71\uff0c\u6548\u7387\u8f83\u9ad8\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528sample()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u9664\u4e86<code>shuffle()<\/code>\u65b9\u6cd5\u5916\uff0c<code>random<\/code>\u6a21\u5757\u4e2d\u7684<code>sample()<\/code>\u65b9\u6cd5\u4e5f\u53ef\u4ee5\u7528\u4e8e\u6253\u4e71\u5b57\u7b26\u4e32\u3002<code>sample()<\/code>\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u968f\u673a\u5316\u5217\u8868\uff0c\u800c\u4e0d\u4f1a\u4fee\u6539\u539f\u59cb\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>def shuffle_string_with_sample(s):<\/p>\n<p>    return &#39;&#39;.join(random.sample(s, len(s)))<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>original_string = &quot;Python&quot;<\/p>\n<p>shuffled_string = shuffle_string_with_sample(original_string)<\/p>\n<p>print(f&quot;\u539f\u59cb\u5b57\u7b26\u4e32: {original_string}&quot;)<\/p>\n<p>print(f&quot;\u6253\u4e71\u540e\u7684\u5b57\u7b26\u4e32: {shuffled_string}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c<code>random.sample()<\/code>\u65b9\u6cd5\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff0c\u8be5\u5217\u8868\u662f\u539f\u59cb\u5b57\u7b26\u4e32\u7684\u968f\u673a\u6392\u5217\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u5217\u8868\u64cd\u4f5c<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7\u624b\u52a8\u5b9e\u73b0\u5b57\u7b26\u4e32\u6253\u4e71\uff0c\u5229\u7528\u5217\u8868\u7684\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>def shuffle_string_manually(s):<\/p>\n<p>    str_list = list(s)<\/p>\n<p>    shuffled_list = []<\/p>\n<p>    while str_list:<\/p>\n<p>        pos = random.randint(0, len(str_list) - 1)<\/p>\n<p>        shuffled_list.append(str_list.pop(pos))<\/p>\n<p>    return &#39;&#39;.join(shuffled_list)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>original_string = &quot;Python&quot;<\/p>\n<p>shuffled_string = shuffle_string_manually(original_string)<\/p>\n<p>print(f&quot;\u539f\u59cb\u5b57\u7b26\u4e32: {original_string}&quot;)<\/p>\n<p>print(f&quot;\u6253\u4e71\u540e\u7684\u5b57\u7b26\u4e32: {shuffled_string}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u867d\u7136\u8f83\u4e3a\u590d\u6742\uff0c\u4f46\u53ef\u4ee5\u66f4\u7075\u6d3b\u5730\u63a7\u5236\u6253\u4e71\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528numpy\u5e93<\/h3>\n<\/p>\n<p><p><code>numpy<\/code>\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u5176\u4e2d\u4e5f\u5305\u542b\u4e86\u968f\u673a\u5316\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u4e8e\u6253\u4e71\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>def shuffle_string_with_numpy(s):<\/p>\n<p>    str_array = np.array(list(s))<\/p>\n<p>    np.random.shuffle(str_array)<\/p>\n<p>    return &#39;&#39;.join(str_array)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>original_string = &quot;Python&quot;<\/p>\n<p>shuffled_string = shuffle_string_with_numpy(original_string)<\/p>\n<p>print(f&quot;\u539f\u59cb\u5b57\u7b26\u4e32: {original_string}&quot;)<\/p>\n<p>print(f&quot;\u6253\u4e71\u540e\u7684\u5b57\u7b26\u4e32: {shuffled_string}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>numpy.random.shuffle()<\/code>\u65b9\u6cd5\u7c7b\u4f3c\u4e8e<code>random.shuffle()<\/code>\uff0c\u4f46\u5b83\u662f\u4e3a\u6570\u7ec4\u8bbe\u8ba1\u7684\uff0c\u56e0\u6b64\u6211\u4eec\u9700\u8981\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u7ec4\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5e94\u7528\u573a\u666f\u4e0e\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6253\u4e71\u5b57\u7b26\u4e32\u53ef\u80fd\u7528\u4e8e\u751f\u6210\u9a8c\u8bc1\u7801\u3001\u968f\u673a\u53e3\u4ee4\u7b49\u3002\u7136\u800c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c<strong>\u968f\u673a\u6027\u5e76\u4e0d\u7b49\u540c\u4e8e\u5b89\u5168\u6027<\/strong>\uff0c\u7279\u522b\u662f\u5728\u9700\u8981\u9ad8\u5b89\u5168\u6027\u7684\u573a\u5408\uff08\u5982\u5bc6\u7801\u751f\u6210\uff09\uff0c\u5efa\u8bae\u4f7f\u7528\u66f4\u4e13\u4e1a\u7684\u968f\u673a\u6570\u751f\u6210\u5668\uff0c\u5982<code>secrets<\/code>\u6a21\u5757\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import secrets<\/p>\n<p>def secure_shuffle_string(s):<\/p>\n<p>    str_list = list(s)<\/p>\n<p>    shuffled_list = []<\/p>\n<p>    while str_list:<\/p>\n<p>        pos = secrets.randbelow(len(str_list))<\/p>\n<p>        shuffled_list.append(str_list.pop(pos))<\/p>\n<p>    return &#39;&#39;.join(shuffled_list)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>original_string = &quot;Python&quot;<\/p>\n<p>shuffled_string = secure_shuffle_string(original_string)<\/p>\n<p>print(f&quot;\u539f\u59cb\u5b57\u7b26\u4e32: {original_string}&quot;)<\/p>\n<p>print(f&quot;\u6253\u4e71\u540e\u7684\u5b57\u7b26\u4e32: {shuffled_string}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u6253\u4e71\u5b57\u7b26\u4e32\u5728Python\u4e2d\u6709\u591a\u79cd\u5b9e\u73b0\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528<code>random<\/code>\u6a21\u5757\u3001\u5217\u8868\u64cd\u4f5c\u4ee5\u53ca<code>numpy<\/code>\u5e93\u7b49\u3002<strong>\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u9700\u6c42<\/strong>\u3002\u65e0\u8bba\u662f\u7528\u4e8e\u7b80\u5355\u7684\u968f\u673a\u5316\u4efb\u52a1\uff0c\u8fd8\u662f\u9700\u8981\u66f4\u9ad8\u5b89\u5168\u6027\u7684\u968f\u673a\u751f\u6210\uff0cPython\u90fd\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5de5\u5177\u548c\u65b9\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6709\u6548\u5730\u6253\u4e71\u5b57\u7b26\u4e32\u7684\u5b57\u7b26\u987a\u5e8f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>random<\/code>\u6a21\u5757\u4e2d\u7684<code>shuffle<\/code>\u65b9\u6cd5\u6765\u6253\u4e71\u5b57\u7b26\u4e32\u7684\u5b57\u7b26\u987a\u5e8f\u3002\u9996\u5148\uff0c\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5217\u8868\uff0c\u56e0\u4e3a<code>shuffle<\/code>\u65b9\u6cd5\u53ea\u9002\u7528\u4e8e\u53ef\u53d8\u5e8f\u5217\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">import random\n\ndef shuffle_string(s):\n    str_list = list(s)  # \u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5217\u8868\n    random.shuffle(str_list)  # \u6253\u4e71\u5217\u8868\u4e2d\u7684\u5b57\u7b26\n    return &#39;&#39;.join(str_list)  # \u5c06\u5217\u8868\u91cd\u65b0\u7ec4\u5408\u6210\u5b57\u7b26\u4e32\n\nresult = shuffle_string(&quot;Hello&quot;)\nprint(result)  # \u8f93\u51fa\u53ef\u80fd\u4e3a&quot;eHllo&quot;\u6216\u5176\u4ed6\u968f\u673a\u987a\u5e8f\n<\/code><\/pre>\n<p><strong>\u6253\u4e71\u5b57\u7b26\u4e32\u540e\uff0c\u5982\u4f55\u786e\u4fdd\u4e0d\u540c\u7684\u8f93\u51fa\u7ed3\u679c\uff1f<\/strong><br \/>\u7531\u4e8e\u6253\u4e71\u7684\u8fc7\u7a0b\u662f\u968f\u673a\u7684\uff0c\u6bcf\u6b21\u8c03\u7528\u6253\u4e71\u51fd\u6570\u65f6\u90fd\u6709\u53ef\u80fd\u751f\u6210\u4e0d\u540c\u7684\u7ed3\u679c\u3002\u4e3a\u4e86\u5f97\u5230\u66f4\u591a\u7684\u72ec\u7279\u8f93\u51fa\uff0c\u53ef\u4ee5\u591a\u6b21\u8c03\u7528\u6253\u4e71\u51fd\u6570\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">for _ in range(5):\n    print(shuffle_string(&quot;Hello&quot;))\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u6253\u5370\u51fa\u4e94\u79cd\u4e0d\u540c\u7684\u5b57\u7b26\u987a\u5e8f\uff0c\u786e\u4fdd\u6bcf\u6b21\u90fd\u662f\u968f\u673a\u7684\u7ed3\u679c\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u901a\u8fc7\u5176\u4ed6\u65b9\u6cd5\u6253\u4e71\u5b57\u7b26\u4e32\uff0c\u800c\u4e0d\u662f\u4f7f\u7528<code>random.shuffle<\/code>\uff1f<\/strong><br \/>\u5f53\u7136\u53ef\u4ee5\uff0c\u9664\u4e86\u4f7f\u7528<code>random.shuffle<\/code>\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5176\u4ed6\u65b9\u6cd5\u6765\u6253\u4e71\u5b57\u7b26\u4e32\uff0c\u6bd4\u5982\u4f7f\u7528<code>random.sample<\/code>\u3002\u8fd9\u79cd\u65b9\u6cd5\u5141\u8bb8\u4f60\u4ece\u5b57\u7b26\u4e32\u4e2d\u968f\u673a\u9009\u62e9\u5b57\u7b26\u5e76\u91cd\u7ec4\u5b83\u4eec\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import random\n\ndef shuffle_string_via_sample(s):\n    return &#39;&#39;.join(random.sample(s, len(s)))\n\nresult = shuffle_string_via_sample(&quot;Hello&quot;)\nprint(result)  # \u8f93\u51fa\u4e5f\u662f\u968f\u673a\u6253\u4e71\u7684\u5b57\u7b26\u4e32\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u540c\u6837\u53ef\u4ee5\u6709\u6548\u5730\u6253\u4e71\u5b57\u7b26\u4e32\uff0c\u4e14\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5c06\u5b57\u7b26\u4e32\u91cd\u65b0\u6253\u4e71\uff0c\u5305\u62ec\u4f7f\u7528\u968f\u673a\u6a21\u5757\u3001\u901a\u8fc7\u5217\u8868\u64cd\u4f5c\u3001\u4ee5\u53ca\u4f7f\u7528numpy\u5e93\u7b49\u3002\u4f7f\u7528ra [&hellip;]","protected":false},"author":3,"featured_media":1122654,"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\/1122648"}],"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=1122648"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1122648\/revisions"}],"predecessor-version":[{"id":1122656,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1122648\/revisions\/1122656"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1122654"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1122648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1122648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1122648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}