{"id":1010214,"date":"2024-12-27T11:18:58","date_gmt":"2024-12-27T03:18:58","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1010214.html"},"modified":"2024-12-27T11:19:02","modified_gmt":"2024-12-27T03:19:02","slug":"python%e5%a6%82%e4%bd%95%e8%be%93%e5%87%ba%e9%9a%8f%e6%9c%ba%e5%80%bc","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1010214.html","title":{"rendered":"python\u5982\u4f55\u8f93\u51fa\u968f\u673a\u503c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084835\/a63162bf-aa15-4152-9cf8-de93098d6e93.webp\" alt=\"python\u5982\u4f55\u8f93\u51fa\u968f\u673a\u503c\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u8f93\u51fa\u968f\u673a\u503c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u6807\u51c6\u5e93\u4e2d\u7684random\u6a21\u5757\u6765\u5b9e\u73b0<\/strong>\u3002\u8be5\u6a21\u5757\u63d0\u4f9b\u4e86\u591a\u79cd\u751f\u6210\u968f\u673a\u6570\u7684\u51fd\u6570\uff0c\u5305\u62ec\u751f\u6210\u968f\u673a\u6574\u6570\u3001\u6d6e\u70b9\u6570\u3001\u9009\u62e9\u968f\u673a\u5143\u7d20\u7b49\u3002\u8981\u751f\u6210\u968f\u673a\u503c\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>random.randint()<\/code>\u6765\u751f\u6210\u968f\u673a\u6574\u6570\u3001\u4f7f\u7528<code>random.uniform()<\/code>\u751f\u6210\u968f\u673a\u6d6e\u70b9\u6570\u3001\u4f7f\u7528<code>random.choice()<\/code>\u4ece\u5217\u8868\u4e2d\u9009\u62e9\u968f\u673a\u5143\u7d20\u3002<strong>\u4ee5<code>random.randint()<\/code>\u4e3a\u4f8b\uff0c\u5b83\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u6307\u5b9a\u8303\u56f4\u5185\u7684\u968f\u673a\u6574\u6570\uff0c\u8fd9\u5bf9\u4e8e\u9700\u8981\u968f\u673a\u9009\u62e9\u6570\u5b57\u7684\u573a\u666f\u975e\u5e38\u5b9e\u7528\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e0b\u9762\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecdPython\u4e2d\u5982\u4f55\u4f7f\u7528random\u6a21\u5757\u6765\u751f\u6210\u968f\u673a\u503c\uff0c\u5e76\u63a2\u8ba8\u4e00\u4e9b\u5e38\u89c1\u7684\u7528\u6cd5\u548c\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001RANDOM\u6a21\u5757\u7b80\u4ecb<\/h3>\n<\/p>\n<p><p>Python\u7684random\u6a21\u5757\u662f\u751f\u6210\u4f2a\u968f\u673a\u6570\u7684\u6807\u51c6\u6a21\u5757\uff0c\u5b83\u5b9e\u73b0\u4e86\u591a\u79cd\u968f\u673a\u6570\u751f\u6210\u7b97\u6cd5\u3002\u867d\u7136\u8fd9\u4e9b\u968f\u673a\u6570\u662f\u201c\u4f2a\u201d\u968f\u673a\u7684\uff0c\u4f46\u5b83\u4eec\u5bf9\u4e8e\u5927\u591a\u6570\u5e94\u7528\u573a\u5408\u6765\u8bf4\u5df2\u7ecf\u8db3\u591f\u968f\u673a\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f2a\u968f\u673a\u6570\u7684\u7279\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4f2a\u968f\u673a\u6570\u662f\u901a\u8fc7\u786e\u5b9a\u6027\u7b97\u6cd5\u751f\u6210\u7684\uff0c\u56e0\u6b64\u5728\u76f8\u540c\u7684\u521d\u59cb\u6761\u4ef6\u4e0b\uff08\u5373\u76f8\u540c\u7684\u79cd\u5b50\uff09\uff0c\u4f1a\u751f\u6210\u76f8\u540c\u7684\u968f\u673a\u6570\u5e8f\u5217\u3002<\/li>\n<li>\u5bf9\u4e8e\u52a0\u5bc6\u7b49\u9ad8\u5b89\u5168\u6027\u8981\u6c42\u7684\u573a\u5408\uff0c\u5efa\u8bae\u4f7f\u7528<code>secrets<\/code>\u6a21\u5757\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>random\u6a21\u5757\u7684\u5e38\u7528\u51fd\u6570<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>random.random()<\/code>: \u751f\u6210\u4e00\u4e2a0\u52301\u4e4b\u95f4\u7684\u968f\u673a\u6d6e\u70b9\u6570\u3002<\/li>\n<li><code>random.randint(a, b)<\/code>: \u751f\u6210\u4e00\u4e2a\u8303\u56f4\u5728a\u5230b\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\uff0c\u5305\u62eca\u548cb\u3002<\/li>\n<li><code>random.uniform(a, b)<\/code>: \u751f\u6210\u4e00\u4e2a\u8303\u56f4\u5728a\u5230b\u4e4b\u95f4\u7684\u968f\u673a\u6d6e\u70b9\u6570\u3002<\/li>\n<li><code>random.choice(seq)<\/code>: \u4ece\u975e\u7a7a\u5e8f\u5217seq\u4e2d\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u5143\u7d20\u3002<\/li>\n<li><code>random.shuffle(seq)<\/code>: \u968f\u673a\u6253\u4e71\u5e8f\u5217seq\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u751f\u6210\u968f\u673a\u6574\u6570<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u968f\u673a\u6574\u6570\u5728\u5f88\u591a\u5e94\u7528\u4e2d\u975e\u5e38\u5e38\u89c1\uff0c\u6bd4\u5982\u6a21\u62df\u63b7\u9ab0\u5b50\u3001\u968f\u673a\u62bd\u6837\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528<code>random.randint()<\/code><\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>random.randint(a, b)<\/code>\u4f1a\u8fd4\u56de\u4e00\u4e2a\u4f4d\u4e8ea\u548cb\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\uff0ca\u548cb\u90fd\u662f\u95ed\u533a\u95f4\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>random_int = random.randint(1, 10)<\/p>\n<p>print(f&quot;Random Integer between 1 and 10: {random_int}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li>\u4f7f\u7528\u573a\u666f\uff1a\u9700\u8981\u751f\u6210\u4e00\u4e2a\u786e\u5b9a\u8303\u56f4\u5185\u7684\u6574\u6570\uff0c\u6bd4\u5982\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u5b66\u751f\u4f5c\u4e3a\u73ed\u957f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528<code>random.randrange()<\/code><\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>random.randrange(start, stop[, step])<\/code>\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u4f4d\u4e8estart\u548cstop\u4e4b\u95f4\u7684\u968f\u673a\u6570\uff0c\u7c7b\u4f3c\u4e8erange()\u51fd\u6570\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">random_int_range = random.randrange(1, 10, 2)<\/p>\n<p>print(f&quot;Random Integer in range 1 to 10 with step 2: {random_int_range}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e09\u3001\u751f\u6210\u968f\u673a\u6d6e\u70b9\u6570<\/h3>\n<\/p>\n<p><p>\u968f\u673a\u6d6e\u70b9\u6570\u901a\u5e38\u7528\u4e8e\u6a21\u62df\u6982\u7387\u5206\u5e03\u6216\u9700\u8981\u66f4\u7cbe\u7ec6\u7684\u968f\u673a\u6570\u751f\u6210\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528<code>random.random()<\/code><\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u751f\u6210\u4e00\u4e2a0\u52301\u4e4b\u95f4\u7684\u968f\u673a\u6d6e\u70b9\u6570\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">random_float = random.random()<\/p>\n<p>print(f&quot;Random Float between 0 and 1: {random_float}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528<code>random.uniform()<\/code><\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>random.uniform(a, b)<\/code>\u751f\u6210\u4e00\u4e2a\u8303\u56f4\u5728a\u5230b\u4e4b\u95f4\u7684\u968f\u673a\u6d6e\u70b9\u6570\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">random_uniform = random.uniform(1.5, 2.5)<\/p>\n<p>print(f&quot;Random Float between 1.5 and 2.5: {random_uniform}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u56db\u3001\u9009\u62e9\u968f\u673a\u5143\u7d20<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5217\u8868\u3001\u5143\u7ec4\u7b49\u6570\u636e\u7ed3\u6784\u65f6\uff0c\u9009\u62e9\u968f\u673a\u5143\u7d20\u7684\u9700\u6c42\u5f88\u5e38\u89c1\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528<code>random.choice()<\/code><\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4ece\u975e\u7a7a\u5e8f\u5217\u4e2d\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u5143\u7d20\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">items = [&#39;apple&#39;, &#39;banana&#39;, &#39;cherry&#39;]<\/p>\n<p>random_item = random.choice(items)<\/p>\n<p>print(f&quot;Random Item from list: {random_item}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528<code>random.choices()<\/code><\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4ece\u5e8f\u5217\u4e2d\u968f\u673a\u9009\u62e9\u5143\u7d20\uff0c\u53ef\u4ee5\u6307\u5b9a\u6743\u91cd\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">random_items = random.choices(items, weights=[10, 1, 1], k=2)<\/p>\n<p>print(f&quot;Randomly selected items with weights: {random_items}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e94\u3001\u6253\u4e71\u5e8f\u5217<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\uff0c\u9700\u8981\u968f\u673a\u6253\u4e71\u4e00\u4e2a\u5e8f\u5217\uff0c\u6bd4\u5982\u6d17\u724c\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528<code>random.shuffle()<\/code><\/strong>\uff1a\n<ul>\n<li>\u539f\u5730\u6253\u4e71\u5e8f\u5217\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">cards = [&#39;Ace&#39;, &#39;King&#39;, &#39;Queen&#39;, &#39;Jack&#39;]<\/p>\n<p>random.shuffle(cards)<\/p>\n<p>print(f&quot;Shuffled Cards: {cards}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u516d\u3001\u8bbe\u7f6e\u968f\u673a\u6570\u79cd\u5b50<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u5728\u8c03\u8bd5\u548c\u6d4b\u8bd5\u4e2d\u751f\u6210\u53ef\u91cd\u590d\u7684\u968f\u673a\u6570\u5e8f\u5217\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u968f\u673a\u6570\u79cd\u5b50\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528<code>random.seed()<\/code><\/strong>\uff1a\n<ul>\n<li>\u8bbe\u7f6e\u79cd\u5b50\u540e\uff0c\u540e\u7eed\u751f\u6210\u7684\u968f\u673a\u6570\u5e8f\u5217\u662f\u53ef\u9884\u6d4b\u7684\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">random.seed(42)<\/p>\n<p>print(f&quot;Random number with seed 42: {random.randint(1, 100)}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e03\u3001\u968f\u673a\u751f\u6210\u5bc6\u7801<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528random\u6a21\u5757\u53ef\u4ee5\u968f\u673a\u751f\u6210\u7b80\u5355\u7684\u5bc6\u7801\uff0c\u4f46\u5bf9\u4e8e\u9ad8\u5b89\u5168\u6027\u8981\u6c42\u7684\u5bc6\u7801\u751f\u6210\uff0c\u5efa\u8bae\u4f7f\u7528secrets\u6a21\u5757\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u7b80\u5355\u5bc6\u7801\u751f\u6210<\/strong>\uff1a\n<pre><code class=\"language-python\">import string<\/p>\n<p>letters = string.ascii_letters<\/p>\n<p>digits = string.digits<\/p>\n<p>all_chars = letters + digits<\/p>\n<p>password = &#39;&#39;.join(random.choice(all_chars) for _ in range(8))<\/p>\n<p>print(f&quot;Random Password: {password}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u516b\u3001\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6e38\u620f\u5f00\u53d1<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u751f\u6210\u968f\u673a\u4e8b\u4ef6\u3001\u968f\u673a\u654c\u4eba\u51fa\u73b0\u5730\u70b9\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6570\u636e\u5206\u6790\u548c\u79d1\u5b66\u8ba1\u7b97<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u968f\u673a\u62bd\u6837\u3001\u6a21\u62df\u5b9e\u9a8c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u7f51\u7edc\u5b89\u5168<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u968f\u673a\u751f\u6210\u4f1a\u8bdd\u5bc6\u94a5\u3001\u9a8c\u8bc1\u7801\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><h3>\u4e5d\u3001\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f2a\u968f\u673a\u6027<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>random\u6a21\u5757\u751f\u6210\u7684\u662f\u4f2a\u968f\u673a\u6570\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u5e94\u7528\uff0c\u4f46\u4e0d\u9002\u7528\u4e8e\u9ad8\u4fdd\u5bc6\u6027\u8981\u6c42\u7684\u573a\u5408\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u786e\u5b9a\u6027<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528\u76f8\u540c\u7684\u79cd\u5b50\u53ef\u4ee5\u751f\u6210\u76f8\u540c\u7684\u968f\u673a\u6570\u5e8f\u5217\uff0c\u6709\u52a9\u4e8e\u8c03\u8bd5\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u7684\u5185\u5bb9\uff0c\u4f60\u5e94\u8be5\u5bf9\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528random\u6a21\u5757\u751f\u6210\u968f\u673a\u503c\u6709\u4e86\u4e00\u4e2a\u5168\u9762\u7684\u4e86\u89e3\u3002\u65e0\u8bba\u662f\u751f\u6210\u968f\u673a\u6574\u6570\u3001\u6d6e\u70b9\u6570\u3001\u8fd8\u662f\u9009\u62e9\u968f\u673a\u5143\u7d20\uff0crandom\u6a21\u5757\u90fd\u80fd\u63d0\u4f9b\u7b80\u5355\u800c\u5f3a\u5927\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u751f\u6210\u968f\u673a\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>random<\/code>\u6a21\u5757\u6765\u751f\u6210\u968f\u673a\u6570\u3002\u901a\u8fc7\u8c03\u7528<code>random.randint(a, b)<\/code>\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u8303\u56f4\u5728a\u5230b\u4e4b\u95f4\u7684\u6574\u6570\uff0c<code>random.uniform(a, b)<\/code>\u5219\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u8303\u56f4\u5728a\u5230b\u4e4b\u95f4\u7684\u6d6e\u70b9\u6570\u3002\u786e\u4fdd\u5728\u4f7f\u7528\u524d\u5bfc\u5165<code>random<\/code>\u6a21\u5757\u3002<\/p>\n<p><strong>\u6211\u80fd\u4f7f\u7528Python\u751f\u6210\u968f\u673a\u5b57\u7b26\u4e32\u5417\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u53ef\u4ee5\u751f\u6210\u968f\u673a\u5b57\u7b26\u4e32\u3002\u53ef\u4ee5\u7ed3\u5408<code>random<\/code>\u6a21\u5757\u548c<code>string<\/code>\u6a21\u5757\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>random.choices()<\/code>\u51fd\u6570\u53ef\u4ee5\u4ece\u5b57\u6bcd\u3001\u6570\u5b57\u548c\u7b26\u53f7\u4e2d\u968f\u673a\u9009\u62e9\u5b57\u7b26\uff0c\u751f\u6210\u4e00\u4e2a\u6307\u5b9a\u957f\u5ea6\u7684\u968f\u673a\u5b57\u7b26\u4e32\u3002\u4ee3\u7801\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">import random\nimport string\n\nlength = 10\nrandom_string = &#39;&#39;.join(random.choices(string.ascii_letters + string.digits, k=length))\n<\/code><\/pre>\n<p><strong>\u968f\u673a\u6570\u7684\u751f\u6210\u5728Python\u4e2d\u6709\u54ea\u4e9b\u5e94\u7528\uff1f<\/strong><br \/>\u968f\u673a\u6570\u5728Python\u4e2d\u7684\u5e94\u7528\u5e7f\u6cdb\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u6e38\u620f\u5f00\u53d1\u3001\u6570\u636e\u6a21\u62df\u3001\u5bc6\u7801\u751f\u6210\u548c\u7b97\u6cd5\u968f\u673a\u5316\u7b49\u3002\u5728\u6e38\u620f\u4e2d\uff0c\u968f\u673a\u6570\u53ef\u4ee5\u7528\u4e8e\u751f\u6210\u654c\u4eba\u884c\u4e3a\u6216\u7269\u54c1\u6389\u843d\u3002\u5728\u6570\u636e\u6a21\u62df\u4e2d\uff0c\u968f\u673a\u6570\u53ef\u4ee5\u5e2e\u52a9\u521b\u5efa\u6d4b\u8bd5\u6570\u636e\uff0c\u4fdd\u8bc1\u7b97\u6cd5\u7684\u9c81\u68d2\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u8f93\u51fa\u968f\u673a\u503c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u6807\u51c6\u5e93\u4e2d\u7684random\u6a21\u5757\u6765\u5b9e\u73b0\u3002\u8be5\u6a21\u5757\u63d0\u4f9b\u4e86\u591a\u79cd\u751f\u6210\u968f\u673a\u6570\u7684\u51fd\u6570\uff0c\u5305\u62ec [&hellip;]","protected":false},"author":3,"featured_media":1010226,"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\/1010214"}],"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=1010214"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1010214\/revisions"}],"predecessor-version":[{"id":1010229,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1010214\/revisions\/1010229"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1010226"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1010214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1010214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1010214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}