{"id":963694,"date":"2024-12-27T04:20:54","date_gmt":"2024-12-26T20:20:54","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/963694.html"},"modified":"2024-12-27T04:20:55","modified_gmt":"2024-12-26T20:20:55","slug":"python%e5%a6%82%e4%bd%95%e7%94%9f%e6%88%90%e9%9a%8f%e6%9c%ba%e5%ba%8f%e5%88%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/963694.html","title":{"rendered":"python\u5982\u4f55\u751f\u6210\u968f\u673a\u5e8f\u5217"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24180846\/29c2144e-556f-403c-a5d1-d6fcc71b1fbe.webp\" alt=\"python\u5982\u4f55\u751f\u6210\u968f\u673a\u5e8f\u5217\" \/><\/p>\n<p><p> \u751f\u6210\u968f\u673a\u5e8f\u5217\u5728Python\u4e2d\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u9700\u6c42\uff0c\u4e3b\u8981\u7528\u4e8e\u6570\u636e\u5206\u6790\u3001\u6a21\u62df\u3001\u6d4b\u8bd5\u7b49\u573a\u666f\u3002<strong>Python\u751f\u6210\u968f\u673a\u5e8f\u5217\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528random\u6a21\u5757\u751f\u6210\u968f\u673a\u6570\u3001\u4f7f\u7528numpy\u6a21\u5757\u751f\u6210\u968f\u673a\u6570\u7ec4\u3001\u4f7f\u7528secrets\u6a21\u5757\u751f\u6210\u5b89\u5168\u968f\u673a\u6570<\/strong>\u3002\u5176\u4e2d\uff0crandom\u6a21\u5757\u9002\u7528\u4e8e\u4e00\u822c\u7528\u9014\uff0cnumpy\u6a21\u5757\u9002\u5408\u79d1\u5b66\u8ba1\u7b97\uff0c\u800csecrets\u6a21\u5757\u9002\u7528\u4e8e\u5b89\u5168\u6027\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u5408\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528RANDOM\u6a21\u5757<\/p>\n<\/p>\n<p><p>random\u6a21\u5757\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u63d0\u4f9b\u4e86\u751f\u6210\u968f\u673a\u6570\u7684\u529f\u80fd\u3002\u8be5\u6a21\u5757\u9002\u7528\u4e8e\u4e00\u822c\u968f\u673a\u6570\u751f\u6210\u4efb\u52a1\u3002<\/p>\n<\/p>\n<ol>\n<li>\u968f\u673a\u6574\u6570\u751f\u6210<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528<code>random.randint(a, b)<\/code>\u53ef\u4ee5\u751f\u6210\u4e00\u4e2aa\u5230b\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\uff0c\u5305\u62eca\u548cb\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>random_int = random.randint(1, 10)<\/p>\n<p>print(f&quot;\u968f\u673a\u6574\u6570: {random_int}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u51fd\u6570\u5bf9\u4e8e\u751f\u6210\u4e00\u4e2a\u5305\u542b\u4e24\u7aef\u70b9\u7684\u6574\u6570\u8303\u56f4\u5185\u7684\u968f\u673a\u6570\u975e\u5e38\u6709\u7528\uff0c\u9002\u5408\u7528\u4e8e\u6a21\u62df\u63b7\u9ab0\u5b50\u3001\u968f\u673a\u62bd\u6837\u7b49\u573a\u666f\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u968f\u673a\u6d6e\u70b9\u6570\u751f\u6210<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528<code>random.uniform(a, b)<\/code>\u53ef\u4ee5\u751f\u6210\u4e00\u4e2aa\u5230b\u4e4b\u95f4\u7684\u968f\u673a\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random_float = random.uniform(1.0, 10.0)<\/p>\n<p>print(f&quot;\u968f\u673a\u6d6e\u70b9\u6570: {random_float}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u9700\u8981\u5728\u67d0\u4e2a\u8303\u56f4\u5185\u751f\u6210\u8fde\u7eed\u503c\u7684\u573a\u666f\uff0c\u6bd4\u5982\u968f\u673a\u6298\u6263\u3001\u6e29\u5ea6\u6a21\u62df\u7b49\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u968f\u673a\u5e8f\u5217\u751f\u6210<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528<code>random.sample(population, k)<\/code>\u53ef\u4ee5\u4ece\u7ed9\u5b9a\u7684\u5e8f\u5217\u4e2d\u968f\u673a\u62bd\u53d6k\u4e2a\u4e0d\u91cd\u590d\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">sequence = [1, 2, 3, 4, 5]<\/p>\n<p>random_sample = random.sample(sequence, 3)<\/p>\n<p>print(f&quot;\u968f\u673a\u6837\u672c: {random_sample}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u4ece\u4e00\u4e2a\u96c6\u5408\u4e2d\u62bd\u53d6\u4e0d\u91cd\u590d\u6837\u672c\u7684\u573a\u666f\uff0c\u6bd4\u5982\u968f\u673a\u62bd\u53d6\u83b7\u5956\u8005\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528NUMPY\u6a21\u5757<\/p>\n<\/p>\n<p><p>numpy\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\u529f\u80fd\uff0c\u4e5f\u5305\u62ec\u968f\u673a\u6570\u751f\u6210\u3002<\/p>\n<\/p>\n<ol>\n<li>\u968f\u673a\u6570\u7ec4\u751f\u6210<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528<code>numpy.random.rand(d0, d1, ..., dn)<\/code>\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u6307\u5b9a\u5f62\u72b6\u7684\u6570\u7ec4\uff0c\u6570\u7ec4\u4e2d\u7684\u5143\u7d20\u662f0\u52301\u4e4b\u95f4\u7684\u968f\u673a\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>random_array = np.random.rand(3, 4)<\/p>\n<p>print(f&quot;\u968f\u673a\u6570\u7ec4:\\n{random_array}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u9700\u8981\u751f\u6210\u5927\u89c4\u6a21\u968f\u673a\u6570\u636e\u7684\u573a\u666f\uff0c\u6bd4\u5982\u6a21\u62df\u6570\u636e\u96c6\u3001\u521d\u59cb\u5316\u795e\u7ecf\u7f51\u7edc\u6743\u91cd\u7b49\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u968f\u673a\u6574\u6570\u6570\u7ec4\u751f\u6210<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528<code>numpy.random.randint(low, high=None, size=None, dtype=int)<\/code>\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u6307\u5b9a\u5f62\u72b6\u7684\u6570\u7ec4\uff0c\u6570\u7ec4\u4e2d\u7684\u5143\u7d20\u662flow\u5230high\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">random_int_array = np.random.randint(1, 10, size=(3, 3))<\/p>\n<p>print(f&quot;\u968f\u673a\u6574\u6570\u6570\u7ec4:\\n{random_int_array}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u5728\u7279\u5b9a\u8303\u56f4\u5185\u751f\u6210\u6574\u6570\u5e8f\u5217\u7684\u573a\u666f\uff0c\u9002\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u4e2d\u7684\u79bb\u6563\u6a21\u62df\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528SECRETS\u6a21\u5757<\/p>\n<\/p>\n<p><p>secrets\u6a21\u5757\u7528\u4e8e\u751f\u6210\u5b89\u5168\u7684\u968f\u673a\u6570\uff0c\u9002\u5408\u9700\u8981\u9ad8\u5b89\u5168\u6027\u7684\u573a\u5408\uff0c\u6bd4\u5982\u5bc6\u7801\u3001\u4ee4\u724c\u751f\u6210\u3002<\/p>\n<\/p>\n<ol>\n<li>\u751f\u6210\u5b89\u5168\u968f\u673a\u6570<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528<code>secrets.randbelow(n)<\/code>\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a0\u5230n-1\u4e4b\u95f4\u7684\u5b89\u5168\u968f\u673a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import secrets<\/p>\n<p>secure_random_int = secrets.randbelow(10)<\/p>\n<p>print(f&quot;\u5b89\u5168\u968f\u673a\u6574\u6570: {secure_random_int}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u9700\u8981\u751f\u6210\u5b89\u5168\u6574\u6570\u7684\u573a\u5408\uff0c\u6bd4\u5982\u52a0\u5bc6\u5bc6\u94a5\u751f\u6210\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u751f\u6210\u5b89\u5168\u968f\u673a\u5b57\u7b26\u4e32<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528<code>secrets.token_hex(nbytes=None)<\/code>\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u5341\u516d\u8fdb\u5236\u968f\u673a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">secure_random_string = secrets.token_hex(16)<\/p>\n<p>print(f&quot;\u5b89\u5168\u968f\u673a\u5b57\u7b26\u4e32: {secure_random_string}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u751f\u6210\u5b89\u5168\u4ee4\u724c\u6216\u5bc6\u7801\uff0c\u786e\u4fdd\u6570\u636e\u5b89\u5168\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u751f\u6210\u968f\u673a\u5e8f\u5217\u7684\u5e94\u7528\u573a\u666f<\/p>\n<\/p>\n<ol>\n<li>\u6570\u636e\u5206\u6790\u4e0e\u6a21\u62df<\/li>\n<\/ol>\n<p><p>\u5728\u6570\u636e\u5206\u6790\u548c\u6a21\u62df\u4e2d\uff0c\u968f\u673a\u5e8f\u5217\u7528\u4e8e\u6a21\u62df\u968f\u673a\u4e8b\u4ef6\u3001\u751f\u6210\u6a21\u62df\u6570\u636e\u96c6\u7b49\u3002\u4f7f\u7528numpy\u53ef\u4ee5\u9ad8\u6548\u5730\u751f\u6210\u5927\u89c4\u6a21\u968f\u673a\u6570\u636e\uff0c\u9002\u5408\u7528\u4e8e\u79d1\u5b66\u7814\u7a76\u548c\u6570\u636e\u5206\u6790\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u6e38\u620f\u5f00\u53d1<\/li>\n<\/ol>\n<p><p>\u5728\u6e38\u620f\u5f00\u53d1\u4e2d\uff0c\u968f\u673a\u6570\u7528\u4e8e\u751f\u6210\u968f\u673a\u4e8b\u4ef6\u3001\u968f\u673a\u654c\u4eba\u884c\u4e3a\u7b49\u3002random\u6a21\u5757\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u8fd9\u4e9b\u9700\u6c42\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u521b\u5efa\u66f4\u52a0\u52a8\u6001\u548c\u6709\u8da3\u7684\u6e38\u620f\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u5b89\u5168\u4e0e\u52a0\u5bc6<\/li>\n<\/ol>\n<p><p>\u5728\u5b89\u5168\u4e0e\u52a0\u5bc6\u4e2d\uff0c\u9700\u8981\u751f\u6210\u9ad8\u5b89\u5168\u6027\u7684\u968f\u673a\u6570\u7528\u4e8e\u5bc6\u94a5\u3001\u4ee4\u724c\u7b49\u3002secrets\u6a21\u5757\u63d0\u4f9b\u4e86\u5b89\u5168\u968f\u673a\u6570\u751f\u6210\uff0c\u786e\u4fdd\u6570\u636e\u7684\u673a\u5bc6\u6027\u548c\u5b8c\u6574\u6027\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<ol>\n<li>\u968f\u673a\u6027\u4e0e\u91cd\u590d\u6027<\/li>\n<\/ol>\n<p><p>\u5728\u4f7f\u7528\u968f\u673a\u6570\u751f\u6210\u65f6\uff0c\u5e94\u6ce8\u610f\u968f\u673a\u6027\u548c\u91cd\u590d\u6027\u7684\u95ee\u9898\u3002\u5bf9\u4e8e\u9700\u8981\u91cd\u590d\u5b9e\u9a8c\u7684\u573a\u5408\uff0c\u53ef\u4ee5\u4f7f\u7528<code>random.seed(a=None)<\/code>\u8bbe\u7f6e\u968f\u673a\u6570\u79cd\u5b50\uff0c\u4ee5\u4fdd\u8bc1\u7ed3\u679c\u7684\u53ef\u91cd\u590d\u6027\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u6027\u80fd\u4e0e\u6548\u7387<\/li>\n<\/ol>\n<p><p>\u5728\u751f\u6210\u5927\u89c4\u6a21\u968f\u673a\u6570\u65f6\uff0c\u5e94\u8003\u8651\u6027\u80fd\u548c\u6548\u7387\u95ee\u9898\u3002numpy\u5728\u8fd9\u65b9\u9762\u8868\u73b0\u4f18\u5f02\uff0c\u9002\u5408\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u5b89\u5168\u6027<\/li>\n<\/ol>\n<p><p>\u5728\u9700\u8981\u9ad8\u5b89\u5168\u6027\u7684\u573a\u5408\uff0c\u5e94\u4f7f\u7528secrets\u6a21\u5757\uff0c\u4ee5\u786e\u4fdd\u751f\u6210\u7684\u968f\u673a\u6570\u4e0d\u6613\u88ab\u9884\u6d4b\u3002<\/p>\n<\/p>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u751f\u6210\u968f\u673a\u5e8f\u5217\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u573a\u5408\u548c\u9700\u6c42\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5e94\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\uff0c\u786e\u4fdd\u968f\u673a\u6570\u751f\u6210\u7684\u6b63\u786e\u6027\u548c\u6709\u6548\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u751f\u6210\u4e00\u4e2a\u968f\u673a\u7684\u6574\u6570\u5e8f\u5217\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>random<\/code>\u6a21\u5757\u6765\u751f\u6210\u968f\u673a\u6574\u6570\u5e8f\u5217\u3002\u5177\u4f53\u65b9\u6cd5\u662f\u5229\u7528<code>random.randint(a, b)<\/code>\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u53ef\u4ee5\u751f\u6210\u6307\u5b9a\u8303\u56f4\u5185\u7684\u968f\u673a\u6574\u6570\u3002\u901a\u8fc7\u7ed3\u5408\u5217\u8868\u63a8\u5bfc\u5f0f\uff0c\u53ef\u4ee5\u5feb\u901f\u751f\u6210\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u968f\u673a\u6574\u6570\u7684\u5217\u8868\u3002\u4f8b\u5982\uff0c<code>random.randint(1, 100)<\/code>\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a1\u5230100\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\uff0c\u4f7f\u7528<code>[random.randint(1, 100) for _ in range(10)]<\/code>\u53ef\u4ee5\u751f\u621010\u4e2a\u8fd9\u6837\u7684\u968f\u673a\u6574\u6570\u3002<\/p>\n<p><strong>\u6709\u4ec0\u4e48\u65b9\u6cd5\u53ef\u4ee5\u751f\u6210\u4e0d\u91cd\u590d\u7684\u968f\u673a\u5e8f\u5217\uff1f<\/strong><br \/>\u82e5\u9700\u8981\u751f\u6210\u4e0d\u91cd\u590d\u7684\u968f\u673a\u5e8f\u5217\uff0c\u53ef\u4ee5\u4f7f\u7528<code>random.sample()<\/code>\u51fd\u6570\u3002\u8be5\u51fd\u6570\u5141\u8bb8\u4f60\u4ece\u4e00\u4e2a\u6307\u5b9a\u8303\u56f4\u5185\u7684\u5e8f\u5217\u4e2d\u968f\u673a\u9009\u62e9\u5143\u7d20\uff0c\u800c\u4e0d\u4f1a\u91cd\u590d\u3002\u4f8b\u5982\uff0c\u5982\u679c\u60f3\u4ece1\u5230100\u4e2d\u968f\u673a\u9009\u62e910\u4e2a\u4e0d\u91cd\u590d\u7684\u6574\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528<code>random.sample(range(1, 101), 10)<\/code>\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u751f\u6210\u7684\u5e8f\u5217\u4e2d\u6ca1\u6709\u91cd\u590d\u7684\u6570\u5b57\u3002<\/p>\n<p><strong>\u5982\u4f55\u63a7\u5236\u751f\u6210\u968f\u673a\u5e8f\u5217\u7684\u79cd\u5b50\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7<code>random.seed()<\/code>\u51fd\u6570\u6765\u8bbe\u7f6e\u968f\u673a\u6570\u751f\u6210\u5668\u7684\u79cd\u5b50\u3002\u79cd\u5b50\u503c\u76f8\u540c\uff0c\u751f\u6210\u7684\u968f\u673a\u5e8f\u5217\u4e5f\u4f1a\u76f8\u540c\u3002\u8fd9\u5728\u9700\u8981\u91cd\u73b0\u968f\u673a\u7ed3\u679c\u65f6\u975e\u5e38\u6709\u7528\u3002\u4f8b\u5982\uff0c\u8c03\u7528<code>random.seed(42)<\/code>\u540e\uff0c\u6240\u6709\u540e\u7eed\u7684\u968f\u673a\u6570\u751f\u6210\u90fd\u4f1a\u57fa\u4e8e\u8fd9\u4e2a\u79cd\u5b50\uff0c\u786e\u4fdd\u7ed3\u679c\u7684\u4e00\u81f4\u6027\u3002\u8fd9\u5728\u8c03\u8bd5\u548c\u6d4b\u8bd5\u8fc7\u7a0b\u4e2d\u5c24\u5176\u91cd\u8981\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u751f\u6210\u968f\u673a\u5e8f\u5217\u5728Python\u4e2d\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u9700\u6c42\uff0c\u4e3b\u8981\u7528\u4e8e\u6570\u636e\u5206\u6790\u3001\u6a21\u62df\u3001\u6d4b\u8bd5\u7b49\u573a\u666f\u3002Python\u751f\u6210\u968f\u673a\u5e8f\u5217\u7684\u65b9 [&hellip;]","protected":false},"author":3,"featured_media":963699,"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\/963694"}],"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=963694"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/963694\/revisions"}],"predecessor-version":[{"id":963700,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/963694\/revisions\/963700"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/963699"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=963694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=963694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=963694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}