{"id":1026808,"date":"2024-12-31T10:45:49","date_gmt":"2024-12-31T02:45:49","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1026808.html"},"modified":"2024-12-31T10:45:51","modified_gmt":"2024-12-31T02:45:51","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e6%89%b9%e9%87%8f%e7%94%9f%e6%88%90%e9%9a%8f%e6%9c%ba%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1026808.html","title":{"rendered":"\u5982\u4f55\u7528python\u6279\u91cf\u751f\u6210\u968f\u673a\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/4024320d-b435-4d8b-9d68-8dbbc9f42e21.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u7528python\u6279\u91cf\u751f\u6210\u968f\u673a\u6570\" \/><\/p>\n<p><p> \u8981\u7528Python\u6279\u91cf\u751f\u6210\u968f\u673a\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u6807\u51c6\u5e93\u4e2d\u7684<code>random<\/code>\u6a21\u5757\uff0c\u8be5\u6a21\u5757\u63d0\u4f9b\u4e86\u751f\u6210\u968f\u673a\u6570\u7684\u591a\u79cd\u65b9\u6cd5\u3002<strong>\u6838\u5fc3\u89c2\u70b9\uff1a\u4f7f\u7528<code>random<\/code>\u6a21\u5757\u3001\u751f\u6210\u968f\u673a\u6574\u6570\u3001\u751f\u6210\u968f\u673a\u6d6e\u70b9\u6570\u3001\u751f\u6210\u7279\u5b9a\u8303\u56f4\u5185\u7684\u968f\u673a\u6570\u3001\u4f7f\u7528\u5217\u8868\u751f\u6210\u5f0f\u6279\u91cf\u751f\u6210<\/strong>\u3002\u5176\u4e2d\uff0c<strong>\u4f7f\u7528<code>random<\/code>\u6a21\u5757<\/strong>\u662f\u6700\u91cd\u8981\u7684\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u751f\u6210\u968f\u673a\u6570\u7684\u57fa\u672c\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528<code>random<\/code>\u6a21\u5757<\/strong>\uff1aPython\u7684<code>random<\/code>\u6a21\u5757\u5305\u542b\u4e86\u591a\u4e2a\u751f\u6210\u968f\u673a\u6570\u7684\u51fd\u6570\uff0c\u4f8b\u5982<code>random.randint()<\/code>\u3001<code>random.uniform()<\/code>\u7b49\u3002\u4f7f\u7528\u8fd9\u4e9b\u51fd\u6570\uff0c\u53ef\u4ee5\u751f\u6210\u4e0d\u540c\u7c7b\u578b\u7684\u968f\u673a\u6570\uff0c\u6bd4\u5982\u6574\u6570\u3001\u6d6e\u70b9\u6570\u7b49\u3002\u901a\u8fc7\u5217\u8868\u751f\u6210\u5f0f\uff0c\u53ef\u4ee5\u6279\u91cf\u751f\u6210\u591a\u4e2a\u968f\u673a\u6570\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u51fd\u6570\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u5bfc\u5165random\u6a21\u5757<\/h2>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5bfc\u5165<code>random<\/code>\u6a21\u5757\u3002<code>random<\/code>\u662fPython\u7684\u6807\u51c6\u5e93\uff0c\u65e0\u9700\u989d\u5916\u5b89\u88c5\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e8c\u3001\u751f\u6210\u968f\u673a\u6574\u6570<\/h2>\n<\/p>\n<p><h3>1\u3001\u4f7f\u7528random.randint()<\/h3>\n<\/p>\n<p><p><code>random.randint(a, b)<\/code>\u51fd\u6570\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u8303\u56f4\u5728<code>a<\/code>\u5230<code>b<\/code>\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\uff0c\u5305\u62ec<code>a<\/code>\u548c<code>b<\/code>\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random_int = random.randint(1, 100)<\/p>\n<p>print(random_int)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u6279\u91cf\u751f\u6210\u968f\u673a\u6574\u6570<\/h3>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u751f\u6210\u5f0f\u6279\u91cf\u751f\u6210\u591a\u4e2a\u968f\u673a\u6574\u6570\u3002\u4f8b\u5982\uff0c\u751f\u621010\u4e2a1\u5230100\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random_ints = [random.randint(1, 100) for _ in range(10)]<\/p>\n<p>print(random_ints)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e09\u3001\u751f\u6210\u968f\u673a\u6d6e\u70b9\u6570<\/h2>\n<\/p>\n<p><h3>1\u3001\u4f7f\u7528random.uniform()<\/h3>\n<\/p>\n<p><p><code>random.uniform(a, b)<\/code>\u51fd\u6570\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u8303\u56f4\u5728<code>a<\/code>\u5230<code>b<\/code>\u4e4b\u95f4\u7684\u968f\u673a\u6d6e\u70b9\u6570\uff0c\u5305\u62ec<code>a<\/code>\u548c<code>b<\/code>\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random_float = random.uniform(1.0, 10.0)<\/p>\n<p>print(random_float)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u6279\u91cf\u751f\u6210\u968f\u673a\u6d6e\u70b9\u6570<\/h3>\n<\/p>\n<p><p>\u540c\u6837\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u751f\u6210\u5f0f\u6279\u91cf\u751f\u6210\u591a\u4e2a\u968f\u673a\u6d6e\u70b9\u6570\u3002\u4f8b\u5982\uff0c\u751f\u621010\u4e2a1.0\u523010.0\u4e4b\u95f4\u7684\u968f\u673a\u6d6e\u70b9\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random_floats = [random.uniform(1.0, 10.0) for _ in range(10)]<\/p>\n<p>print(random_floats)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u56db\u3001\u751f\u6210\u7279\u5b9a\u8303\u56f4\u5185\u7684\u968f\u673a\u6570<\/h2>\n<\/p>\n<p><h3>1\u3001\u4f7f\u7528random.sample()<\/h3>\n<\/p>\n<p><p><code>random.sample(population, k)<\/code>\u51fd\u6570\u53ef\u4ee5\u4ece\u6307\u5b9a\u7684\u5e8f\u5217\u4e2d\u968f\u673a\u62bd\u53d6<code>k<\/code>\u4e2a\u5143\u7d20\uff0c\u8fd4\u56de\u4e00\u4e2a\u5217\u8868\u3002\u4f8b\u5982\uff0c\u4ece1\u5230100\u4e2d\u62bd\u53d610\u4e2a\u4e0d\u540c\u7684\u6574\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random_samples = random.sample(range(1, 101), 10)<\/p>\n<p>print(random_samples)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u4f7f\u7528random.choices()<\/h3>\n<\/p>\n<p><p><code>random.choices(population, k)<\/code>\u51fd\u6570\u53ef\u4ee5\u4ece\u6307\u5b9a\u7684\u5e8f\u5217\u4e2d\u968f\u673a\u62bd\u53d6<code>k<\/code>\u4e2a\u5143\u7d20\uff0c\u8fd4\u56de\u4e00\u4e2a\u5217\u8868\uff0c\u5143\u7d20\u53ef\u4ee5\u91cd\u590d\u3002\u4f8b\u5982\uff0c\u4ece1\u5230100\u4e2d\u62bd\u53d610\u4e2a\u6574\u6570\uff0c\u5141\u8bb8\u91cd\u590d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random_choices = random.choices(range(1, 101), k=10)<\/p>\n<p>print(random_choices)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e94\u3001\u751f\u6210\u6b63\u6001\u5206\u5e03\u7684\u968f\u673a\u6570<\/h2>\n<\/p>\n<p><h3>1\u3001\u4f7f\u7528random.gauss()<\/h3>\n<\/p>\n<p><p><code>random.gauss(mu, sigma)<\/code>\u51fd\u6570\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u5747\u503c\u4e3a<code>mu<\/code>\u3001\u6807\u51c6\u5dee\u4e3a<code>sigma<\/code>\u7684\u6b63\u6001\u5206\u5e03\u7684\u968f\u673a\u6d6e\u70b9\u6570\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random_gauss = random.gauss(0, 1)<\/p>\n<p>print(random_gauss)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u6279\u91cf\u751f\u6210\u6b63\u6001\u5206\u5e03\u7684\u968f\u673a\u6570<\/h3>\n<\/p>\n<p><p>\u540c\u6837\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u751f\u6210\u5f0f\u6279\u91cf\u751f\u6210\u591a\u4e2a\u6b63\u6001\u5206\u5e03\u7684\u968f\u673a\u6570\u3002\u4f8b\u5982\uff0c\u751f\u621010\u4e2a\u5747\u503c\u4e3a0\u3001\u6807\u51c6\u5dee\u4e3a1\u7684\u6b63\u6001\u5206\u5e03\u7684\u968f\u673a\u6d6e\u70b9\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random_gausses = [random.gauss(0, 1) for _ in range(10)]<\/p>\n<p>print(random_gausses)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u516d\u3001\u751f\u6210\u968f\u673a\u79cd\u5b50<\/h2>\n<\/p>\n<p><h3>1\u3001\u4f7f\u7528random.seed()<\/h3>\n<\/p>\n<p><p><code>random.seed(a)<\/code>\u51fd\u6570\u53ef\u4ee5\u521d\u59cb\u5316\u968f\u673a\u6570\u751f\u6210\u5668\u3002\u4f7f\u7528\u76f8\u540c\u7684\u79cd\u5b50\u503c\uff0c\u80fd\u591f\u751f\u6210\u76f8\u540c\u7684\u968f\u673a\u6570\u5e8f\u5217\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random.seed(42)<\/p>\n<p>print(random.randint(1, 100))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u591a\u6b21\u8bbe\u7f6e\u76f8\u540c\u7684\u79cd\u5b50\u503c\uff0c\u53ef\u4ee5\u9a8c\u8bc1\u751f\u6210\u7684\u968f\u673a\u6570\u662f\u5426\u4e00\u81f4\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u6279\u91cf\u751f\u6210\u968f\u673a\u6570\u5e76\u8bbe\u7f6e\u79cd\u5b50<\/h3>\n<\/p>\n<p><p>\u5728\u751f\u6210\u6279\u91cf\u968f\u673a\u6570\u524d\uff0c\u8bbe\u7f6e\u79cd\u5b50\u503c\u4ee5\u786e\u4fdd\u6bcf\u6b21\u751f\u6210\u7684\u968f\u673a\u6570\u5e8f\u5217\u76f8\u540c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random.seed(42)<\/p>\n<p>random_ints_seed = [random.randint(1, 100) for _ in range(10)]<\/p>\n<p>print(random_ints_seed)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e03\u3001\u751f\u6210\u591a\u7ef4\u968f\u673a\u6570<\/h2>\n<\/p>\n<p><h3>1\u3001\u4f7f\u7528numpy\u5e93<\/h3>\n<\/p>\n<p><p><code>numpy<\/code>\u5e93\u63d0\u4f9b\u4e86\u66f4\u591a\u9ad8\u7ea7\u7684\u968f\u673a\u6570\u751f\u6210\u51fd\u6570\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u751f\u6210\u591a\u7ef4\u968f\u673a\u6570\u3002\u9996\u5148\u9700\u8981\u5b89\u88c5<code>numpy<\/code>\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install numpy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u751f\u6210\u591a\u7ef4\u968f\u673a\u6574\u6570<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528<code>numpy.random.randint(low, high=None, size=None)<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u751f\u6210\u591a\u7ef4\u968f\u673a\u6574\u6570\u6570\u7ec4\u3002\u4f8b\u5982\uff0c\u751f\u6210\u4e00\u4e2a3&#215;3\u7684\u968f\u673a\u6574\u6570\u6570\u7ec4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>random_ints_2d = np.random.randint(1, 100, size=(3, 3))<\/p>\n<p>print(random_ints_2d)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u751f\u6210\u591a\u7ef4\u968f\u673a\u6d6e\u70b9\u6570<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528<code>numpy.random.uniform(low=0.0, high=1.0, size=None)<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u751f\u6210\u591a\u7ef4\u968f\u673a\u6d6e\u70b9\u6570\u6570\u7ec4\u3002\u4f8b\u5982\uff0c\u751f\u6210\u4e00\u4e2a3&#215;3\u7684\u968f\u673a\u6d6e\u70b9\u6570\u6570\u7ec4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random_floats_2d = np.random.uniform(1.0, 10.0, size=(3, 3))<\/p>\n<p>print(random_floats_2d)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>4\u3001\u751f\u6210\u591a\u7ef4\u6b63\u6001\u5206\u5e03\u968f\u673a\u6570<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528<code>numpy.random.normal(loc=0.0, scale=1.0, size=None)<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u751f\u6210\u591a\u7ef4\u6b63\u6001\u5206\u5e03\u968f\u673a\u6570\u6570\u7ec4\u3002\u4f8b\u5982\uff0c\u751f\u6210\u4e00\u4e2a3&#215;3\u7684\u6b63\u6001\u5206\u5e03\u968f\u673a\u6570\u6570\u7ec4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random_gausses_2d = np.random.normal(0, 1, size=(3, 3))<\/p>\n<p>print(random_gausses_2d)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u516b\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>random<\/code>\u6a21\u5757\u548c<code>numpy<\/code>\u5e93\uff0c<strong>\u751f\u6210\u4e0d\u540c\u7c7b\u578b\u548c\u4e0d\u540c\u7ef4\u5ea6\u7684\u968f\u673a\u6570<\/strong>\uff0c\u5305\u62ec\u6574\u6570\u3001\u6d6e\u70b9\u6570\u3001\u7279\u5b9a\u8303\u56f4\u5185\u7684\u968f\u673a\u6570\u3001\u6b63\u6001\u5206\u5e03\u968f\u673a\u6570\u7b49\u3002<strong>\u4f7f\u7528\u5217\u8868\u751f\u6210\u5f0f<\/strong>\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u6279\u91cf\u751f\u6210\u591a\u4e2a\u968f\u673a\u6570\u3002<strong>\u8bbe\u7f6e\u968f\u673a\u79cd\u5b50<\/strong>\uff0c\u53ef\u4ee5\u786e\u4fdd\u6bcf\u6b21\u751f\u6210\u76f8\u540c\u7684\u968f\u673a\u6570\u5e8f\u5217\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>numpy<\/code>\u5e93\uff0c\u8fd8\u53ef\u4ee5\u751f\u6210\u591a\u7ef4\u968f\u673a\u6570\u6570\u7ec4\uff0c\u8fdb\u4e00\u6b65\u63d0\u5347\u968f\u673a\u6570\u751f\u6210\u7684\u7075\u6d3b\u6027\u548c\u5e94\u7528\u8303\u56f4\u3002\u5e0c\u671b\u8fd9\u4e9b\u65b9\u6cd5\u80fd\u591f\u5e2e\u52a9\u4f60\u5728Python\u7f16\u7a0b\u4e2d\u66f4\u597d\u5730\u4f7f\u7528\u968f\u673a\u6570\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u751f\u6210\u4e0d\u540c\u8303\u56f4\u7684\u968f\u673a\u6570\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>random<\/code>\u6a21\u5757\u751f\u6210\u4e0d\u540c\u8303\u56f4\u7684\u968f\u673a\u6570\u3002\u901a\u8fc7<code>random.randint(a, b)<\/code>\u53ef\u4ee5\u751f\u6210\u4ecb\u4e8ea\u548cb\u4e4b\u95f4\u7684\u6574\u6570\uff0c<code>random.uniform(a, b)<\/code>\u5219\u53ef\u4ee5\u751f\u6210\u4ecb\u4e8ea\u548cb\u4e4b\u95f4\u7684\u6d6e\u70b9\u6570\u3002\u5229\u7528\u8fd9\u4e9b\u51fd\u6570\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u8c03\u6574\u968f\u673a\u6570\u7684\u8303\u56f4\u3002<\/p>\n<p><strong>\u5982\u4f55\u63d0\u9ad8\u751f\u6210\u7684\u968f\u673a\u6570\u7684\u552f\u4e00\u6027\uff1f<\/strong><br \/>\u4e3a\u4e86\u786e\u4fdd\u751f\u6210\u7684\u968f\u673a\u6570\u5177\u6709\u552f\u4e00\u6027\uff0c\u53ef\u4ee5\u4f7f\u7528<code>set<\/code>\u6570\u636e\u7ed3\u6784\u6765\u5b58\u50a8\u968f\u673a\u6570\u3002\u901a\u8fc7\u4e0d\u65ad\u751f\u6210\u968f\u673a\u6570\u5e76\u5c06\u5176\u6dfb\u52a0\u5230\u96c6\u5408\u4e2d\uff0c\u76f4\u5230\u8fbe\u5230\u6240\u9700\u7684\u6570\u91cf\uff0c\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u91cd\u590d\u503c\u7684\u51fa\u73b0\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u7ed3\u5408\u65f6\u95f4\u6233\u6216\u5176\u4ed6\u72ec\u7279\u7684\u53c2\u6570\u6765\u589e\u52a0\u968f\u673a\u6570\u7684\u552f\u4e00\u6027\u3002<\/p>\n<p><strong>\u6709\u6ca1\u6709\u7b80\u5355\u7684\u65b9\u6cd5\u6765\u6279\u91cf\u751f\u6210\u968f\u673a\u6570\u5e76\u4fdd\u5b58\u5230\u6587\u4ef6\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528Python\u7684\u6587\u4ef6\u64cd\u4f5c\u529f\u80fd\u5c06\u751f\u6210\u7684\u968f\u673a\u6570\u4fdd\u5b58\u5230\u6587\u672c\u6587\u4ef6\u4e2d\u3002\u751f\u6210\u968f\u673a\u6570\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>with open(&#39;filename.txt&#39;, &#39;w&#39;) as file:<\/code>\u7684\u65b9\u5f0f\u6253\u5f00\u6587\u4ef6\u5e76\u9010\u884c\u5199\u5165\u968f\u673a\u6570\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u6279\u91cf\u751f\u6210\u968f\u673a\u6570\u5e76\u6301\u4e45\u5316\u5b58\u50a8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u7528Python\u6279\u91cf\u751f\u6210\u968f\u673a\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u6807\u51c6\u5e93\u4e2d\u7684random\u6a21\u5757\uff0c\u8be5\u6a21\u5757\u63d0\u4f9b\u4e86\u751f\u6210\u968f\u673a\u6570\u7684\u591a\u79cd\u65b9 [&hellip;]","protected":false},"author":3,"featured_media":1026814,"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\/1026808"}],"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=1026808"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1026808\/revisions"}],"predecessor-version":[{"id":1026816,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1026808\/revisions\/1026816"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1026814"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1026808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1026808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1026808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}