{"id":1045568,"date":"2024-12-31T13:24:30","date_gmt":"2024-12-31T05:24:30","guid":{"rendered":""},"modified":"2024-12-31T13:24:39","modified_gmt":"2024-12-31T05:24:39","slug":"python%e5%a6%82%e4%bd%95%e7%94%9f%e6%88%9010%e4%b8%aa%e9%9a%8f%e6%9c%ba%e6%95%b0%e5%ad%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1045568.html","title":{"rendered":"python\u5982\u4f55\u751f\u621010\u4e2a\u968f\u673a\u6570\u5b57"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/5d7fb2e4-3621-472f-a228-bdb044e8f926.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u751f\u621010\u4e2a\u968f\u673a\u6570\u5b57\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u751f\u621010\u4e2a\u968f\u673a\u6570\u5b57\u7684\u51e0\u79cd\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528random\u6a21\u5757\u3001\u4f7f\u7528numpy\u6a21\u5757\u3001\u4f7f\u7528secrets\u6a21\u5757\u3002<\/strong> \u5176\u4e2d\uff0c<strong>random\u6a21\u5757<\/strong>\u662f\u6700\u5e38\u7528\u7684\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u7b80\u5355\u6613\u7528\u7684\u529f\u80fd\u6765\u751f\u6210\u968f\u673a\u6570\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u6765\u751f\u621010\u4e2a\u968f\u673a\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528random\u6a21\u5757<\/h3>\n<\/p>\n<p><p><strong>random\u6a21\u5757<\/strong>\u662fPython\u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u6a21\u5757\uff0c\u63d0\u4f9b\u4e86\u751f\u6210\u968f\u673a\u6570\u7684\u529f\u80fd\u3002\u8981\u751f\u621010\u4e2a\u968f\u673a\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528random\u6a21\u5757\u4e2d\u7684random.randint\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><h4>1.1\u3001\u751f\u6210\u6574\u6570\u968f\u673a\u6570<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<h2><strong>\u751f\u621010\u4e2a\u968f\u673a\u6574\u6570<\/strong><\/h2>\n<p>random_numbers = [random.randint(1, 100) for _ in range(10)]<\/p>\n<p>print(random_numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u5c06\u751f\u621010\u4e2a\u8303\u56f4\u57281\u5230100\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\u3002<code>random.randint(a, b)<\/code>\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5728[a, b]\u8303\u56f4\u5185\u7684\u6574\u6570\u3002\u901a\u8fc7\u5217\u8868\u751f\u6210\u5f0f\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u751f\u6210\u6307\u5b9a\u6570\u91cf\u7684\u968f\u673a\u6570\u3002<\/p>\n<\/p>\n<p><h4>1.2\u3001\u751f\u6210\u6d6e\u70b9\u968f\u673a\u6570<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<h2><strong>\u751f\u621010\u4e2a\u968f\u673a\u6d6e\u70b9\u6570<\/strong><\/h2>\n<p>random_floats = [random.uniform(1.0, 100.0) for _ in range(10)]<\/p>\n<p>print(random_floats)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>random.uniform(a, b)<\/code>\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5728[a, b]\u8303\u56f4\u5185\u7684\u6d6e\u70b9\u6570\u3002\u4e0e\u751f\u6210\u6574\u6570\u7684\u65b9\u5f0f\u7c7b\u4f3c\uff0c\u901a\u8fc7\u5217\u8868\u751f\u6210\u5f0f\u53ef\u4ee5\u751f\u621010\u4e2a\u968f\u673a\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528numpy\u6a21\u5757<\/h3>\n<\/p>\n<p><p><strong>numpy\u6a21\u5757<\/strong>\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u503c\u8ba1\u7b97\u5e93\uff0c\u63d0\u4f9b\u4e86\u751f\u6210\u968f\u673a\u6570\u7684\u529f\u80fd\u3002\u8981\u751f\u621010\u4e2a\u968f\u673a\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528numpy\u6a21\u5757\u4e2d\u7684numpy.random.randint\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><h4>2.1\u3001\u751f\u6210\u6574\u6570\u968f\u673a\u6570<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u751f\u621010\u4e2a\u968f\u673a\u6574\u6570<\/strong><\/h2>\n<p>random_numbers = np.random.randint(1, 100, size=10)<\/p>\n<p>print(random_numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u5c06\u751f\u621010\u4e2a\u8303\u56f4\u57281\u5230100\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\u3002<code>numpy.random.randint(a, b, size)<\/code>\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5728[a, b)\u8303\u56f4\u5185\u7684\u6574\u6570\u6570\u7ec4\uff0c\u6570\u7ec4\u5927\u5c0f\u7531size\u53c2\u6570\u6307\u5b9a\u3002<\/p>\n<\/p>\n<p><h4>2.2\u3001\u751f\u6210\u6d6e\u70b9\u968f\u673a\u6570<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u751f\u621010\u4e2a\u968f\u673a\u6d6e\u70b9\u6570<\/strong><\/h2>\n<p>random_floats = np.random.uniform(1.0, 100.0, size=10)<\/p>\n<p>print(random_floats)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>numpy.random.uniform(a, b, size)<\/code>\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5728[a, b)\u8303\u56f4\u5185\u7684\u6d6e\u70b9\u6570\u6570\u7ec4\uff0c\u6570\u7ec4\u5927\u5c0f\u7531size\u53c2\u6570\u6307\u5b9a\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528secrets\u6a21\u5757<\/h3>\n<\/p>\n<p><p><strong>secrets\u6a21\u5757<\/strong>\u662fPython\u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u6a21\u5757\uff0c\u7528\u4e8e\u751f\u6210\u5bc6\u7801\u5b66\u4e0a\u5b89\u5168\u7684\u968f\u673a\u6570\u3002\u8981\u751f\u621010\u4e2a\u968f\u673a\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528secrets\u6a21\u5757\u4e2d\u7684secrets.randbelow\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><h4>3.1\u3001\u751f\u6210\u6574\u6570\u968f\u673a\u6570<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import secrets<\/p>\n<h2><strong>\u751f\u621010\u4e2a\u968f\u673a\u6574\u6570<\/strong><\/h2>\n<p>random_numbers = [secrets.randbelow(100) + 1 for _ in range(10)]<\/p>\n<p>print(random_numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u5c06\u751f\u621010\u4e2a\u8303\u56f4\u57281\u5230100\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\u3002<code>secrets.randbelow(n)<\/code>\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5728[0, n)\u8303\u56f4\u5185\u7684\u6574\u6570\u3002\u901a\u8fc7\u5217\u8868\u751f\u6210\u5f0f\uff0c\u53ef\u4ee5\u751f\u6210\u6307\u5b9a\u6570\u91cf\u7684\u968f\u673a\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u968f\u673a\u6570\u751f\u6210\u7684\u5e94\u7528<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u968f\u673a\u6570\u5728\u8bb8\u591a\u5e94\u7528\u4e2d\u90fd\u975e\u5e38\u91cd\u8981\uff0c\u5982\u6a21\u62df\u3001\u7edf\u8ba1\u5206\u6790\u3001\u5bc6\u7801\u5b66\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u7b49\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u968f\u673a\u6570\u5728\u4e00\u4e9b\u5177\u4f53\u5e94\u7528\u4e2d\u7684\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h4>4.1\u3001\u6a21\u62df\u548c\u8499\u7279\u5361\u7f57\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>\u5728\u6a21\u62df\u548c\u8499\u7279\u5361\u7f57\u65b9\u6cd5\u4e2d\uff0c\u968f\u673a\u6570\u7528\u4e8e\u751f\u6210\u6a21\u62df\u6570\u636e\uff0c\u4ee5\u4fbf\u8fdb\u884c\u590d\u6742\u7cfb\u7edf\u7684\u5206\u6790\u548c\u51b3\u7b56\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>def simulate_pi(num_samples):<\/p>\n<p>    inside_circle = 0<\/p>\n<p>    for _ in range(num_samples):<\/p>\n<p>        x, y = random.random(), random.random()<\/p>\n<p>        if x&lt;strong&gt;2 + y&lt;\/strong&gt;2 &lt;= 1:<\/p>\n<p>            inside_circle += 1<\/p>\n<p>    return (inside_circle \/ num_samples) * 4<\/p>\n<h2><strong>\u4f7f\u752810000\u4e2a\u6837\u672c\u6a21\u62dfPI\u503c<\/strong><\/h2>\n<p>estimated_pi = simulate_pi(10000)<\/p>\n<p>print(estimated_pi)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u4f7f\u7528\u8499\u7279\u5361\u7f57\u65b9\u6cd5<a href=\"https:\/\/docs.pingcode.com\/agile\/project-management\/estimation\" target=\"_blank\">\u4f30\u7b97<\/a>\u5706\u5468\u7387\u03c0\u7684\u503c\u3002\u901a\u8fc7\u751f\u6210\u968f\u673a\u70b9\u5e76\u5224\u65ad\u5176\u662f\u5426\u5728\u5355\u4f4d\u5706\u5185\uff0c\u53ef\u4ee5\u4f30\u7b97\u03c0\u7684\u503c\u3002<\/p>\n<\/p>\n<p><h4>4.2\u3001\u5bc6\u7801\u5b66\u5e94\u7528<\/h4>\n<\/p>\n<p><p>\u5728\u5bc6\u7801\u5b66\u4e2d\uff0c\u751f\u6210\u5b89\u5168\u7684\u968f\u673a\u6570\u5bf9\u4e8e\u751f\u6210\u5bc6\u94a5\u3001\u521d\u59cb\u5316\u5411\u91cf\u7b49\u975e\u5e38\u91cd\u8981\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import secrets<\/p>\n<h2><strong>\u751f\u621016\u5b57\u8282\u7684\u968f\u673a\u5bc6\u94a5<\/strong><\/h2>\n<p>key = secrets.token_bytes(16)<\/p>\n<p>print(key)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u751f\u6210\u4e00\u4e2a16\u5b57\u8282\u7684\u968f\u673a\u5bc6\u94a5\uff0c\u7528\u4e8e\u52a0\u5bc6\u548c\u89e3\u5bc6\u64cd\u4f5c\u3002<code>secrets.token_bytes(n)<\/code>\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u957f\u5ea6\u4e3an\u7684\u968f\u673a\u5b57\u8282\u5e8f\u5217\u3002<\/p>\n<\/p>\n<p><h4>4.3\u3001\u673a\u5668\u5b66\u4e60\u4e2d\u7684\u6570\u636e\u5206\u5272<\/h4>\n<\/p>\n<p><p>\u5728\u673a\u5668\u5b66\u4e60\u4e2d\uff0c\u751f\u6210\u968f\u673a\u6570\u7528\u4e8e\u6570\u636e\u96c6\u7684\u5206\u5272\uff0c\u5982\u5c06\u6570\u636e\u96c6\u5206\u4e3a\u8bad\u7ec3\u96c6\u548c\u6d4b\u8bd5\u96c6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>data = list(range(100))  # \u793a\u4f8b\u6570\u636e\u96c6<\/p>\n<p>random.shuffle(data)<\/p>\n<h2><strong>\u5206\u5272\u6570\u636e\u96c6<\/strong><\/h2>\n<p>tr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n_data = data[:80]<\/p>\n<p>test_data = data[80:]<\/p>\n<p>print(&quot;Train Data:&quot;, train_data)<\/p>\n<p>print(&quot;Test Data:&quot;, test_data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u4f7f\u7528<code>random.shuffle<\/code>\u51fd\u6570\u5c06\u6570\u636e\u96c6\u6253\u4e71\uff0c\u7136\u540e\u5206\u5272\u6210\u8bad\u7ec3\u96c6\u548c\u6d4b\u8bd5\u96c6\u3002\u8fd9\u6837\u53ef\u4ee5\u4fdd\u8bc1\u6570\u636e\u7684\u968f\u673a\u6027\uff0c\u63d0\u9ad8\u6a21\u578b\u7684\u6cdb\u5316\u80fd\u529b\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528Python\u751f\u621010\u4e2a\u968f\u673a\u6570\u5b57\u7684\u51e0\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528random\u6a21\u5757\u3001numpy\u6a21\u5757\u548csecrets\u6a21\u5757\u3002\u6211\u4eec\u8fd8\u8ba8\u8bba\u4e86\u968f\u673a\u6570\u751f\u6210\u5728\u6a21\u62df\u3001\u5bc6\u7801\u5b66\u548c\u673a\u5668\u5b66\u4e60\u4e2d\u7684\u5e94\u7528\u3002\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\u548c\u5e94\u7528\uff0c\u60a8\u53ef\u4ee5\u66f4\u597d\u5730\u5229\u7528\u968f\u673a\u6570\u6765\u89e3\u51b3\u5404\u79cd\u5b9e\u9645\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><p><strong>\u6838\u5fc3\u91cd\u70b9\u5185\u5bb9\uff1a<\/strong><\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528random\u6a21\u5757\u751f\u6210\u968f\u673a\u6574\u6570\u548c\u6d6e\u70b9\u6570<\/strong>\u3002<\/li>\n<li><strong>\u4f7f\u7528numpy\u6a21\u5757\u751f\u6210\u968f\u673a\u6574\u6570\u548c\u6d6e\u70b9\u6570<\/strong>\u3002<\/li>\n<li><strong>\u4f7f\u7528secrets\u6a21\u5757\u751f\u6210\u5bc6\u7801\u5b66\u5b89\u5168\u7684\u968f\u673a\u6570<\/strong>\u3002<\/li>\n<li><strong>\u968f\u673a\u6570\u5728\u6a21\u62df\u3001\u5bc6\u7801\u5b66\u548c\u673a\u5668\u5b66\u4e60\u4e2d\u7684\u5e94\u7528<\/strong>\u3002<\/li>\n<\/ol>\n<p><p>\u5e0c\u671b\u672c\u6587\u80fd\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528Python\u751f\u6210\u968f\u673a\u6570\uff0c\u5e76\u5c06\u5176\u5e94\u7528\u4e8e\u5b9e\u9645\u95ee\u9898\u4e2d\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u751f\u6210\u6307\u5b9a\u8303\u56f4\u5185\u7684\u968f\u673a\u6570\u5b57\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>random<\/code>\u6a21\u5757\u751f\u6210\u6307\u5b9a\u8303\u56f4\u5185\u7684\u968f\u673a\u6570\u5b57\u3002\u53ef\u4ee5\u4f7f\u7528<code>random.randint(a, b)<\/code>\u51fd\u6570\uff0c\u8fd4\u56de\u4e00\u4e2a\u8303\u56f4\u5728a\u5230b\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\u3002\u4f8b\u5982\uff0c<code>random.randint(1, 100)<\/code>\u5c06\u8fd4\u56de\u4e00\u4e2a1\u5230100\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\u3002<\/p>\n<p><strong>\u751f\u6210\u7684\u968f\u673a\u6570\u5b57\u662f\u5426\u53ef\u4ee5\u5305\u542b\u91cd\u590d\u503c\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u4f7f\u7528<code>random<\/code>\u6a21\u5757\u751f\u6210\u7684\u968f\u673a\u6570\u5b57\u53ef\u80fd\u4f1a\u5305\u542b\u91cd\u590d\u503c\uff0c\u56e0\u4e3a\u6bcf\u6b21\u8c03\u7528\u751f\u6210\u51fd\u6570\u65f6\uff0c\u90fd\u662f\u72ec\u7acb\u7684\u968f\u673a\u9009\u62e9\u3002\u5982\u679c\u5e0c\u671b\u751f\u6210\u4e00\u7ec4\u552f\u4e00\u7684\u968f\u673a\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528<code>random.sample(range(start, end), count)<\/code>\uff0c\u5176\u4e2d<code>start<\/code>\u548c<code>end<\/code>\u5b9a\u4e49\u4e86\u6570\u5b57\u8303\u56f4\uff0c<code>count<\/code>\u662f\u60a8\u60f3\u8981\u751f\u6210\u7684\u6570\u5b57\u6570\u91cf\u3002<\/p>\n<p><strong>\u5982\u4f55\u5c06\u751f\u6210\u7684\u968f\u673a\u6570\u5b57\u5b58\u50a8\u5728\u5217\u8868\u4e2d\uff1f<\/strong><br \/>\u60a8\u53ef\u4ee5\u7b80\u5355\u5730\u5c06\u751f\u6210\u7684\u968f\u673a\u6570\u5b57\u6dfb\u52a0\u5230\u4e00\u4e2a\u5217\u8868\u4e2d\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u6765\u751f\u621010\u4e2a\u968f\u673a\u6570\u5b57\u5e76\u5c06\u5176\u5b58\u50a8\u5728\u5217\u8868\u4e2d\uff1a<code>random_numbers = [random.randint(1, 100) for _ in range(10)]<\/code>\u3002\u8fd9\u6837\u5c31\u4f1a\u521b\u5efa\u4e00\u4e2a\u5305\u542b10\u4e2a\u968f\u673a\u6574\u6570\u7684\u5217\u8868\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u751f\u621010\u4e2a\u968f\u673a\u6570\u5b57\u7684\u51e0\u79cd\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528random\u6a21\u5757\u3001\u4f7f\u7528numpy\u6a21\u5757\u3001\u4f7f\u7528secrets [&hellip;]","protected":false},"author":3,"featured_media":1045591,"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\/1045568"}],"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=1045568"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1045568\/revisions"}],"predecessor-version":[{"id":1045596,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1045568\/revisions\/1045596"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1045591"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1045568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1045568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1045568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}