{"id":954614,"date":"2024-12-27T02:00:31","date_gmt":"2024-12-26T18:00:31","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/954614.html"},"modified":"2024-12-27T02:00:33","modified_gmt":"2024-12-26T18:00:33","slug":"python%e5%a6%82%e4%bd%95%e7%bb%99%e7%a8%8b%e5%ba%8f%e8%ae%a1%e6%97%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/954614.html","title":{"rendered":"python\u5982\u4f55\u7ed9\u7a0b\u5e8f\u8ba1\u65f6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25094756\/2d7a7320-bde8-4fc0-9712-16371908838a.webp\" alt=\"python\u5982\u4f55\u7ed9\u7a0b\u5e8f\u8ba1\u65f6\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u7ed9\u7a0b\u5e8f\u8ba1\u65f6\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5176\u4e2d\u5305\u62ec\u4f7f\u7528time\u6a21\u5757\u3001datetime\u6a21\u5757\u3001timeit\u6a21\u5757\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u52bf\u548c\u9002\u7528\u573a\u666f\u3002<\/strong>\u5177\u4f53\u6765\u8bf4\uff0c<strong>time\u6a21\u5757<\/strong>\u662f\u6700\u5e38\u7528\u7684\uff0c\u56e0\u4e3a\u5b83\u7b80\u5355\u6613\u7528\uff1b<strong>datetime\u6a21\u5757<\/strong>\u63d0\u4f9b\u4e86\u66f4\u7cbe\u786e\u7684\u65f6\u95f4\u64cd\u4f5c\uff1b\u800c<strong>timeit\u6a21\u5757<\/strong>\u5219\u662f\u4e13\u95e8\u7528\u4e8e\u8ba1\u65f6\u5c0f\u6bb5\u4ee3\u7801\u7684\u6267\u884c\u65f6\u95f4\uff0c\u9002\u5408\u6027\u80fd\u6d4b\u8bd5\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u53ca\u5176\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528TIME\u6a21\u5757<\/p>\n<\/p>\n<p><p><code>time<\/code>\u6a21\u5757\u662fPython\u4e2d\u6700\u7b80\u5355\u3001\u6700\u5e38\u7528\u7684\u65f6\u95f4\u5904\u7406\u6a21\u5757\u4e4b\u4e00\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\u548c\u7a0b\u5e8f\u6267\u884c\u65f6\u95f4\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u83b7\u53d6\u5f53\u524d\u65f6\u95f4<\/strong><\/li>\n<\/ol>\n<p><p>\u8981\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\uff0c\u53ef\u4ee5\u4f7f\u7528<code>time.time()<\/code>\u51fd\u6570\u3002\u5b83\u8fd4\u56de\u5f53\u524d\u65f6\u95f4\u7684\u65f6\u95f4\u6233\uff0c\u5373\u81ea1970\u5e741\u67081\u65e5\u4ee5\u6765\u7684\u79d2\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>current_time = time.time()<\/p>\n<p>print(&quot;\u5f53\u524d\u65f6\u95f4\u6233\u4e3a:&quot;, current_time)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u8ba1\u65f6\u7a0b\u5e8f\u8fd0\u884c\u65f6\u95f4<\/strong><\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u8bb0\u5f55\u7a0b\u5e8f\u5f00\u59cb\u548c\u7ed3\u675f\u65f6\u7684\u65f6\u95f4\u6233\uff0c\u53ef\u4ee5\u8ba1\u7b97\u7a0b\u5e8f\u8fd0\u884c\u65f6\u95f4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>start_time = time.time()<\/p>\n<h2><strong>\u6a21\u62df\u7a0b\u5e8f\u8fd0\u884c<\/strong><\/h2>\n<p>time.sleep(2)<\/p>\n<p>end_time = time.time()<\/p>\n<p>print(&quot;\u7a0b\u5e8f\u8fd0\u884c\u65f6\u95f4\u4e3a:&quot;, end_time - start_time, &quot;\u79d2&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528DATETIME\u6a21\u5757<\/p>\n<\/p>\n<p><p><code>datetime<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7ea7\u7684\u65f6\u95f4\u5904\u7406\u529f\u80fd\uff0c\u9002\u5408\u9700\u8981\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u83b7\u53d6\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4<\/strong><\/li>\n<\/ol>\n<p><p><code>datetime.now()<\/code>\u51fd\u6570\u53ef\u4ee5\u83b7\u53d6\u5f53\u524d\u7684\u65e5\u671f\u548c\u65f6\u95f4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import datetime<\/p>\n<p>current_datetime = datetime.now()<\/p>\n<p>print(&quot;\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\u4e3a:&quot;, current_datetime)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u8ba1\u7b97\u65f6\u95f4\u5dee<\/strong><\/li>\n<\/ol>\n<p><p><code>datetime<\/code>\u6a21\u5757\u53ef\u4ee5\u5904\u7406\u66f4\u590d\u6742\u7684\u65f6\u95f4\u5dee\u8ba1\u7b97\uff0c\u9002\u5408\u9700\u8981\u7cbe\u786e\u5230\u5fae\u79d2\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import datetime<\/p>\n<p>start_time = datetime.now()<\/p>\n<h2><strong>\u6a21\u62df\u7a0b\u5e8f\u8fd0\u884c<\/strong><\/h2>\n<p>time.sleep(2)<\/p>\n<p>end_time = datetime.now()<\/p>\n<p>duration = end_time - start_time<\/p>\n<p>print(&quot;\u7a0b\u5e8f\u8fd0\u884c\u65f6\u95f4\u4e3a:&quot;, duration)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528TIMEIT\u6a21\u5757<\/p>\n<\/p>\n<p><p><code>timeit<\/code>\u6a21\u5757\u4e13\u95e8\u7528\u4e8e\u6d4b\u91cf\u5c0f\u6bb5\u4ee3\u7801\u7684\u6267\u884c\u65f6\u95f4\uff0c\u9002\u5408\u6027\u80fd\u6d4b\u8bd5\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/li>\n<\/ol>\n<p><p><code>timeit.timeit()<\/code>\u51fd\u6570\u53ef\u4ee5\u76f4\u63a5\u7528\u4e8e\u6d4b\u91cf\u4ee3\u7801\u5757\u7684\u6267\u884c\u65f6\u95f4\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5b83\u4f1a\u8fd0\u884c\u4ee3\u7801100\u4e07\u6b21\uff0c\u5e76\u8fd4\u56de\u603b\u65f6\u95f4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import timeit<\/p>\n<p>execution_time = timeit.timeit(&#39;&quot;-&quot;.join(str(n) for n in range(100))&#39;, number=10000)<\/p>\n<p>print(&quot;\u6267\u884c\u65f6\u95f4\u4e3a:&quot;, execution_time, &quot;\u79d2&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528setup\u53c2\u6570<\/strong><\/li>\n<\/ol>\n<p><p><code>timeit<\/code>\u6a21\u5757\u5141\u8bb8\u6211\u4eec\u901a\u8fc7<code>setup<\/code>\u53c2\u6570\u8bbe\u7f6e\u6d4b\u8bd5\u73af\u5883\uff0c\u8fd9\u5728\u9700\u8981\u4f7f\u7528\u5916\u90e8\u6a21\u5757\u6216\u5b9a\u4e49\u51fd\u6570\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import timeit<\/p>\n<p>setup_code = &quot;from math import sqrt&quot;<\/p>\n<p>test_code = &#39;&#39;&#39;<\/p>\n<p>def test():<\/p>\n<p>    for i in range(1, 100):<\/p>\n<p>        sqrt(i)<\/p>\n<p>&#39;&#39;&#39;<\/p>\n<p>execution_time = timeit.timeit(test_code, setup=setup_code, number=10000)<\/p>\n<p>print(&quot;\u6267\u884c\u65f6\u95f4\u4e3a:&quot;, execution_time, &quot;\u79d2&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528PERF_COUNTER\u548cPROCESS_TIME<\/p>\n<\/p>\n<p><p><code>perf_counter<\/code>\u548c<code>process_time<\/code>\u662fPython 3.3\u540e\u5f15\u5165\u7684\u65b0\u8ba1\u65f6\u65b9\u6cd5\uff0c\u63d0\u4f9b\u4e86\u66f4\u7cbe\u786e\u7684\u8ba1\u65f6\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528perf_counter<\/strong><\/li>\n<\/ol>\n<p><p><code>perf_counter()<\/code>\u8fd4\u56de\u4e00\u4e2a\u7cbe\u786e\u7684\u9ad8\u5206\u8fa8\u7387\u65f6\u95f4\u8ba1\u6570\u5668\uff0c\u9002\u5408\u9700\u8981\u9ad8\u7cbe\u5ea6\u8ba1\u65f6\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>start_time = time.perf_counter()<\/p>\n<h2><strong>\u6a21\u62df\u7a0b\u5e8f\u8fd0\u884c<\/strong><\/h2>\n<p>time.sleep(2)<\/p>\n<p>end_time = time.perf_counter()<\/p>\n<p>print(&quot;\u7a0b\u5e8f\u8fd0\u884c\u65f6\u95f4\u4e3a:&quot;, end_time - start_time, &quot;\u79d2&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528process_time<\/strong><\/li>\n<\/ol>\n<p><p><code>process_time()<\/code>\u8fd4\u56de\u7a0b\u5e8f\u8fd0\u884c\u7684CPU\u65f6\u95f4\uff0c\u4e0d\u5305\u62ec\u7761\u7720\u65f6\u95f4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>start_time = time.process_time()<\/p>\n<h2><strong>\u6a21\u62df\u7a0b\u5e8f\u8fd0\u884c<\/strong><\/h2>\n<p>time.sleep(2)<\/p>\n<p>end_time = time.process_time()<\/p>\n<p>print(&quot;CPU\u8fd0\u884c\u65f6\u95f4\u4e3a:&quot;, end_time - start_time, &quot;\u79d2&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u9009\u62e9\u5408\u9002\u7684\u8ba1\u65f6\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u6839\u636e\u4e0d\u540c\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u8ba1\u65f6\u65b9\u6cd5\u662f\u63d0\u9ad8\u7a0b\u5e8f\u6027\u80fd\u548c\u51c6\u786e\u6027\u7684\u5173\u952e\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u7b80\u5355\u8ba1\u65f6<\/strong><\/li>\n<\/ol>\n<p><p>\u5bf9\u4e8e\u7b80\u5355\u7684\u7a0b\u5e8f\u8ba1\u65f6\u9700\u6c42\uff0c<code>time<\/code>\u6a21\u5757\u7684<code>time()<\/code>\u51fd\u6570\u901a\u5e38\u5df2\u7ecf\u8db3\u591f\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u65e5\u671f\u548c\u65f6\u95f4\u64cd\u4f5c<\/strong><\/li>\n<\/ol>\n<p><p>\u5982\u679c\u9700\u8981\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\uff0c<code>datetime<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u6027\u80fd\u6d4b\u8bd5<\/strong><\/li>\n<\/ol>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u7cbe\u786e\u6d4b\u91cf\u5c0f\u6bb5\u4ee3\u7801\u6027\u80fd\u7684\u573a\u666f\uff0c<code>timeit<\/code>\u6a21\u5757\u662f\u6700\u4f73\u9009\u62e9\u3002<\/p>\n<\/p>\n<ol start=\"4\">\n<li><strong>\u9ad8\u7cbe\u5ea6\u8ba1\u65f6<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u9700\u8981\u9ad8\u7cbe\u5ea6\u8ba1\u65f6\u7684\u573a\u666f\u4e0b\uff0c<code>perf_counter<\/code>\u548c<code>process_time<\/code>\u63d0\u4f9b\u4e86\u66f4\u7cbe\u786e\u7684\u8ba1\u65f6\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u51e0\u79cd\u65b9\u6cd5\uff0cPython\u80fd\u591f\u6ee1\u8db3\u4ece\u7b80\u5355\u5230\u590d\u6742\u7684\u5404\u79cd\u8ba1\u65f6\u9700\u6c42\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u5206\u6790\u7a0b\u5e8f\u6027\u80fd\uff0c\u4f18\u5316\u4ee3\u7801\uff0c\u63d0\u9ad8\u7a0b\u5e8f\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u7a0b\u5e8f\u8ba1\u65f6\u529f\u80fd\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>time<\/code>\u6a21\u5757\u6216<code>timeit<\/code>\u6a21\u5757\u6765\u5b9e\u73b0\u7a0b\u5e8f\u8ba1\u65f6\u3002<code>time<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u7b80\u5355\u7684\u65f6\u95f4\u6d4b\u91cf\u529f\u80fd\uff0c\u53ef\u4ee5\u4f7f\u7528<code>time.time()<\/code>\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\u6233\uff0c\u8ba1\u7b97\u5f00\u59cb\u548c\u7ed3\u675f\u4e4b\u95f4\u7684\u5dee\u503c\u3002\u800c<code>timeit<\/code>\u6a21\u5757\u5219\u4e13\u95e8\u7528\u4e8e\u6d4b\u91cf\u5c0f\u6bb5\u4ee3\u7801\u7684\u6267\u884c\u65f6\u95f4\uff0c\u9002\u5408\u6027\u80fd\u6d4b\u8bd5\u3002\u4e24\u8005\u90fd\u80fd\u6709\u6548\u5730\u5e2e\u52a9\u4f60\u4e86\u89e3\u7a0b\u5e8f\u7684\u8fd0\u884c\u65f6\u957f\u3002<\/p>\n<p><strong>\u4f7f\u7528<code>time<\/code>\u6a21\u5757\u8ba1\u65f6\u7684\u793a\u4f8b\u4ee3\u7801\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u793a\u4f8b\u6765\u4f7f\u7528<code>time<\/code>\u6a21\u5757\u8ba1\u65f6\uff1a<\/p>\n<pre><code class=\"language-python\">import time\n\nstart_time = time.time()  # \u8bb0\u5f55\u5f00\u59cb\u65f6\u95f4\n# \u5728\u6b64\u5904\u653e\u7f6e\u9700\u8981\u8ba1\u65f6\u7684\u4ee3\u7801\nend_time = time.time()  # \u8bb0\u5f55\u7ed3\u675f\u65f6\u95f4\nprint(&quot;\u7a0b\u5e8f\u8fd0\u884c\u65f6\u95f4: {:.2f}\u79d2&quot;.format(end_time - start_time))\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u83b7\u5f97\u4ee3\u7801\u6bb5\u7684\u6267\u884c\u65f6\u95f4\u3002<\/p>\n<p><strong><code>timeit<\/code>\u6a21\u5757\u4e0e<code>time<\/code>\u6a21\u5757\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f<\/strong><br \/><code>timeit<\/code>\u6a21\u5757\u66f4\u9002\u5408\u5bf9\u5c0f\u6bb5\u4ee3\u7801\u8fdb\u884c\u7cbe\u786e\u7684\u6027\u80fd\u6d4b\u91cf\u3002\u5b83\u81ea\u52a8\u5904\u7406\u591a\u6b21\u8fd0\u884c\u4ee5\u83b7\u5f97\u66f4\u7a33\u5b9a\u7684\u6d4b\u91cf\u7ed3\u679c\uff0c\u9002\u5408\u7528\u4e8e\u6027\u80fd\u4f18\u5316\u3002\u4f7f\u7528<code>timeit<\/code>\u6a21\u5757\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u6216\u5728\u4ee3\u7801\u4e2d\u8c03\u7528\u6765\u6267\u884c\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c<code>time<\/code>\u6a21\u5757\u9002\u5408\u4e00\u822c\u7528\u9014\u7684\u8ba1\u65f6\uff0c\u4f7f\u7528\u66f4\u4e3a\u7b80\u5355\u660e\u4e86\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5bf9\u7279\u5b9a\u51fd\u6570\u8fdb\u884c\u8ba1\u65f6\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528\u88c5\u9970\u5668\u6765\u65b9\u4fbf\u5730\u4e3a\u7279\u5b9a\u51fd\u6570\u6dfb\u52a0\u8ba1\u65f6\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">import time\n\ndef timer(func):\n    def wrapper(*args, **kwargs):\n        start_time = time.time()\n        result = func(*args, **kwargs)\n        end_time = time.time()\n        print(f&quot;{func.__name__}\u8fd0\u884c\u65f6\u95f4: {end_time - start_time:.2f}\u79d2&quot;)\n        return result\n    return wrapper\n\n@timer\ndef my_function():\n    # \u9700\u8981\u8ba1\u65f6\u7684\u4ee3\u7801\n    pass\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u5728\u8c03\u7528\u51fd\u6570\u65f6\u81ea\u52a8\u83b7\u5f97\u5176\u8fd0\u884c\u65f6\u95f4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u7ed9\u7a0b\u5e8f\u8ba1\u65f6\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5176\u4e2d\u5305\u62ec\u4f7f\u7528time\u6a21\u5757\u3001datetime\u6a21\u5757\u3001timeit\u6a21\u5757\u7b49\u3002 [&hellip;]","protected":false},"author":3,"featured_media":954616,"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\/954614"}],"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=954614"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/954614\/revisions"}],"predecessor-version":[{"id":954620,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/954614\/revisions\/954620"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/954616"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=954614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=954614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=954614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}