{"id":1135969,"date":"2025-01-08T21:31:05","date_gmt":"2025-01-08T13:31:05","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1135969.html"},"modified":"2025-01-08T21:31:08","modified_gmt":"2025-01-08T13:31:08","slug":"python%e5%a6%82%e4%bd%95%e8%ae%a1%e7%ae%97%e4%b8%a4%e4%b8%aa%e6%97%a5%e6%9c%9f%e9%97%b4%e9%9a%94%e5%a4%9a%e5%b0%91%e5%a4%a9","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1135969.html","title":{"rendered":"python\u5982\u4f55\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u95f4\u9694\u591a\u5c11\u5929"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25104458\/fc85924a-dd4a-45ee-92f5-ea357419556f.webp\" alt=\"python\u5982\u4f55\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u95f4\u9694\u591a\u5c11\u5929\" \/><\/p>\n<p><p> <strong>Python\u5982\u4f55\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u95f4\u9694\u591a\u5c11\u5929<\/strong><\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528Python\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u95f4\u9694\u7684\u4e3b\u8981\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528datetime\u6a21\u5757\u3001\u4f7f\u7528dateutil\u6a21\u5757\u3001\u5229\u7528\u65f6\u95f4\u6233\u8ba1\u7b97\u3002<\/strong>\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u79cd\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u76f8\u5173\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528datetime\u6a21\u5757<\/h3>\n<\/p>\n<p><p>Python\u7684datetime\u6a21\u5757\u662f\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u7684\u6807\u51c6\u5e93\uff0c\u529f\u80fd\u5f3a\u5927\u4e14\u6613\u4e8e\u4f7f\u7528\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7datetime\u6a21\u5757\u8f7b\u677e\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5929\u6570\u95f4\u9694\u3002<\/p>\n<\/p>\n<p><h4>1. \u5bfc\u5165datetime\u6a21\u5757<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5bfc\u5165datetime\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import datetime<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u521b\u5efa\u65e5\u671f\u5bf9\u8c61<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e24\u4e2a\u65e5\u671f\u5bf9\u8c61\uff0c\u53ef\u4ee5\u4f7f\u7528datetime.strptime()\u65b9\u6cd5\u5c06\u65e5\u671f\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u65e5\u671f\u5bf9\u8c61\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">date1 = datetime.strptime(&#39;2023-01-01&#39;, &#39;%Y-%m-%d&#39;)<\/p>\n<p>date2 = datetime.strptime(&#39;2023-12-31&#39;, &#39;%Y-%m-%d&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u8ba1\u7b97\u65e5\u671f\u95f4\u9694<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u51cf\u53bb\u4e24\u4e2a\u65e5\u671f\u5bf9\u8c61\uff0c\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2atimedelta\u5bf9\u8c61\uff0c\u8be5\u5bf9\u8c61\u8868\u793a\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u95f4\u9694\u65f6\u95f4\u3002\u7136\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528days\u5c5e\u6027\u83b7\u53d6\u95f4\u9694\u7684\u5929\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">delta = date2 - date1<\/p>\n<p>print(f&quot;\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u95f4\u9694\u5929\u6570\u662f: {delta.days} \u5929&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528dateutil\u6a21\u5757<\/h3>\n<\/p>\n<p><p>dateutil\u6a21\u5757\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u7b2c\u4e09\u65b9\u5e93\uff0c\u63d0\u4f9b\u4e86\u66f4\u591a\u9ad8\u7ea7\u7684\u65e5\u671f\u5904\u7406\u529f\u80fd\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528dateutil\u6a21\u5757\u4e2d\u7684parser\u6765\u89e3\u6790\u65e5\u671f\u5b57\u7b26\u4e32\uff0c\u5e76\u8ba1\u7b97\u65e5\u671f\u95f4\u9694\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5dateutil\u6a21\u5757<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5dateutil\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install python-dateutil<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5bfc\u5165dateutil\u6a21\u5757<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u5bfc\u5165dateutil\u6a21\u5757\u4e2d\u7684parser\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from dateutil import parser<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u89e3\u6790\u65e5\u671f\u5b57\u7b26\u4e32\u5e76\u8ba1\u7b97\u95f4\u9694<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528parser.parse()\u65b9\u6cd5\u5c06\u65e5\u671f\u5b57\u7b26\u4e32\u89e3\u6790\u4e3a\u65e5\u671f\u5bf9\u8c61\uff0c\u7136\u540e\u8ba1\u7b97\u65e5\u671f\u95f4\u9694\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">date1 = parser.parse(&#39;2023-01-01&#39;)<\/p>\n<p>date2 = parser.parse(&#39;2023-12-31&#39;)<\/p>\n<p>delta = date2 - date1<\/p>\n<p>print(f&quot;\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u95f4\u9694\u5929\u6570\u662f: {delta.days} \u5929&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5229\u7528\u65f6\u95f4\u6233\u8ba1\u7b97<\/h3>\n<\/p>\n<p><p>\u53e6\u4e00\u79cd\u8ba1\u7b97\u65e5\u671f\u95f4\u9694\u7684\u65b9\u6cd5\u662f\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233\uff0c\u7136\u540e\u8ba1\u7b97\u65f6\u95f4\u6233\u7684\u5dee\u503c\u3002\u65f6\u95f4\u6233\u8868\u793a\u81ea1970\u5e741\u67081\u65e5\u4ee5\u6765\u7684\u79d2\u6570\u3002<\/p>\n<\/p>\n<p><h4>1. \u5bfc\u5165time\u6a21\u5757<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u9700\u8981\u5bfc\u5165time\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5b9a\u4e49\u65e5\u671f\u5b57\u7b26\u4e32\u5e76\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528time.mktime()\u65b9\u6cd5\u5c06\u65e5\u671f\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">time_format = &#39;%Y-%m-%d&#39;<\/p>\n<p>date1 = time.mktime(time.strptime(&#39;2023-01-01&#39;, time_format))<\/p>\n<p>date2 = time.mktime(time.strptime(&#39;2023-12-31&#39;, time_format))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u8ba1\u7b97\u65f6\u95f4\u6233\u5dee\u503c\u5e76\u8f6c\u6362\u4e3a\u5929\u6570<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u8ba1\u7b97\u4e24\u4e2a\u65f6\u95f4\u6233\u7684\u5dee\u503c\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u5929\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">delta_seconds = date2 - date1<\/p>\n<p>delta_days = delta_seconds \/ (24 * 3600)<\/p>\n<p>print(f&quot;\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u95f4\u9694\u5929\u6570\u662f: {int(delta_days)} \u5929&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8ba1\u7b97\u65e5\u671f\u95f4\u9694\u7684\u9700\u6c42\u975e\u5e38\u5e38\u89c1\u3002\u4f8b\u5982\uff0c\u8ba1\u7b97\u9879\u76ee\u7684\u5de5\u671f\u3001\u5458\u5de5\u7684\u5de5\u4f5c\u5929\u6570\u3001\u6d3b\u52a8\u7684\u6301\u7eed\u65f6\u95f4\u7b49\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u4ecb\u7ecd\u4e00\u4e9b\u5b9e\u9645\u5e94\u7528\u573a\u666f\u4e2d\u7684\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h4>1. \u8ba1\u7b97\u9879\u76ee\u5de5\u671f<\/h4>\n<\/p>\n<p><p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u9879\u76ee\u7684\u5f00\u59cb\u65e5\u671f\u548c\u7ed3\u675f\u65e5\u671f\uff0c\u9700\u8981\u8ba1\u7b97\u9879\u76ee\u7684\u5de5\u671f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import datetime<\/p>\n<h2><strong>\u9879\u76ee\u5f00\u59cb\u548c\u7ed3\u675f\u65e5\u671f<\/strong><\/h2>\n<p>start_date = datetime.strptime(&#39;2023-03-01&#39;, &#39;%Y-%m-%d&#39;)<\/p>\n<p>end_date = datetime.strptime(&#39;2023-08-15&#39;, &#39;%Y-%m-%d&#39;)<\/p>\n<h2><strong>\u8ba1\u7b97\u5de5\u671f<\/strong><\/h2>\n<p>project_duration = end_date - start_date<\/p>\n<p>print(f&quot;\u9879\u76ee\u5de5\u671f\u662f: {project_duration.days} \u5929&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8ba1\u7b97\u5458\u5de5\u7684\u5de5\u4f5c\u5929\u6570<\/h4>\n<\/p>\n<p><p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u5458\u5de5\u7684\u5165\u804c\u65e5\u671f\u548c\u5f53\u524d\u65e5\u671f\uff0c\u9700\u8981\u8ba1\u7b97\u5458\u5de5\u7684\u5de5\u4f5c\u5929\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import datetime<\/p>\n<h2><strong>\u5458\u5de5\u5165\u804c\u65e5\u671f\u548c\u5f53\u524d\u65e5\u671f<\/strong><\/h2>\n<p>join_date = datetime.strptime(&#39;2020-06-15&#39;, &#39;%Y-%m-%d&#39;)<\/p>\n<p>current_date = datetime.now()<\/p>\n<h2><strong>\u8ba1\u7b97\u5de5\u4f5c\u5929\u6570<\/strong><\/h2>\n<p>working_days = current_date - join_date<\/p>\n<p>print(f&quot;\u5458\u5de5\u7684\u5de5\u4f5c\u5929\u6570\u662f: {working_days.days} \u5929&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u8ba1\u7b97\u6d3b\u52a8\u7684\u6301\u7eed\u65f6\u95f4<\/h4>\n<\/p>\n<p><p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u6d3b\u52a8\u7684\u5f00\u59cb\u548c\u7ed3\u675f\u65e5\u671f\uff0c\u9700\u8981\u8ba1\u7b97\u6d3b\u52a8\u7684\u6301\u7eed\u65f6\u95f4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import datetime<\/p>\n<h2><strong>\u6d3b\u52a8\u5f00\u59cb\u548c\u7ed3\u675f\u65e5\u671f<\/strong><\/h2>\n<p>event_start = datetime.strptime(&#39;2023-07-01&#39;, &#39;%Y-%m-%d&#39;)<\/p>\n<p>event_end = datetime.strptime(&#39;2023-07-10&#39;, &#39;%Y-%m-%d&#39;)<\/p>\n<h2><strong>\u8ba1\u7b97\u6301\u7eed\u65f6\u95f4<\/strong><\/h2>\n<p>event_duration = event_end - event_start<\/p>\n<p>print(f&quot;\u6d3b\u52a8\u7684\u6301\u7eed\u65f6\u95f4\u662f: {event_duration.days} \u5929&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u8be6\u7ec6\u4e86\u89e3\u4e86<strong>\u5982\u4f55\u4f7f\u7528Python\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u95f4\u9694\u5929\u6570<\/strong>\uff0c\u5305\u62ec\u4f7f\u7528datetime\u6a21\u5757\u3001dateutil\u6a21\u5757\u548c\u5229\u7528\u65f6\u95f4\u6233\u8ba1\u7b97\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u7279\u70b9\u548c\u9002\u7528\u573a\u666f\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6765\u89e3\u51b3\u95ee\u9898\u3002\u638c\u63e1\u8fd9\u4e9b\u6280\u672f\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u9ad8\u6548\u5730\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u76f8\u5173\u7684\u4efb\u52a1\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5929\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>datetime<\/code>\u6a21\u5757\u6765\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5929\u6570\u3002\u4f60\u53ef\u4ee5\u521b\u5efa\u4e24\u4e2a<code>date<\/code>\u5bf9\u8c61\uff0c\u5e76\u901a\u8fc7\u76f8\u51cf\u7684\u65b9\u5f0f\u5f97\u5230\u4e00\u4e2a<code>timedelta<\/code>\u5bf9\u8c61\uff0c\u63a5\u7740\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u5bf9\u8c61\u7684<code>days<\/code>\u5c5e\u6027\u83b7\u53d6\u5929\u6570\u5dee\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">from datetime import datetime\n\ndate1 = datetime(2023, 10, 1)\ndate2 = datetime(2023, 10, 31)\ndifference = (date2 - date1).days\nprint(f&quot;\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5929\u6570\u4e3a\uff1a{difference}&quot;)\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5904\u7406\u65e5\u671f\u683c\u5f0f\u4e0d\u4e00\u81f4\u7684\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u8ba1\u7b97\u65e5\u671f\u95f4\u9694\u65f6\uff0c\u786e\u4fdd\u65e5\u671f\u683c\u5f0f\u4e00\u81f4\u662f\u5f88\u91cd\u8981\u7684\u3002\u5982\u679c\u4f60\u6709\u4e0d\u540c\u683c\u5f0f\u7684\u65e5\u671f\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u4f7f\u7528<code>strptime()<\/code>\u51fd\u6570\u5c06\u5b83\u4eec\u8f6c\u6362\u4e3a<code>datetime<\/code>\u5bf9\u8c61\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">from datetime import datetime\n\ndate_str1 = &quot;2023-10-01&quot;\ndate_str2 = &quot;31\/10\/2023&quot;\ndate1 = datetime.strptime(date_str1, &quot;%Y-%m-%d&quot;)\ndate2 = datetime.strptime(date_str2, &quot;%d\/%m\/%Y&quot;)\ndifference = (date2 - date1).days\nprint(f&quot;\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5929\u6570\u4e3a\uff1a{difference}&quot;)\n<\/code><\/pre>\n<p><strong>\u6709\u6ca1\u6709\u5e93\u53ef\u4ee5\u7b80\u5316\u65e5\u671f\u95f4\u9694\u7684\u8ba1\u7b97\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528\u5185\u7f6e\u7684<code>datetime<\/code>\u6a21\u5757\uff0cPython\u793e\u533a\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\uff0c\u5982<code>dateutil<\/code>\u548c<code>pandas<\/code>\uff0c\u53ef\u4ee5\u66f4\u65b9\u4fbf\u5730\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u529f\u80fd\u548c\u7075\u6d3b\u6027\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u590d\u6742\u65e5\u671f\u64cd\u4f5c\u65f6\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>pandas<\/code>\u53ef\u4ee5\u5f88\u7b80\u5355\u5730\u8ba1\u7b97\u65e5\u671f\u95f4\u9694\uff1a<\/p>\n<pre><code class=\"language-python\">import pandas as pd\n\ndate1 = pd.to_datetime(&quot;2023-10-01&quot;)\ndate2 = pd.to_datetime(&quot;2023-10-31&quot;)\ndifference = (date2 - date1).days\nprint(f&quot;\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5929\u6570\u4e3a\uff1a{difference}&quot;)\n<\/code><\/pre>\n<p>\u4f7f\u7528\u8fd9\u4e9b\u5e93\u53ef\u4ee5\u7b80\u5316\u4ee3\u7801\u5e76\u63d0\u9ad8\u53ef\u8bfb\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5982\u4f55\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u95f4\u9694\u591a\u5c11\u5929 \u4f7f\u7528Python\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u95f4\u9694\u7684\u4e3b\u8981\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528datetime\u6a21\u5757 [&hellip;]","protected":false},"author":3,"featured_media":1135978,"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\/1135969"}],"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=1135969"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1135969\/revisions"}],"predecessor-version":[{"id":1135981,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1135969\/revisions\/1135981"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1135978"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1135969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1135969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1135969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}