{"id":989764,"date":"2024-12-27T08:14:24","date_gmt":"2024-12-27T00:14:24","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/989764.html"},"modified":"2024-12-27T08:14:27","modified_gmt":"2024-12-27T00:14:27","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e6%97%a5%e6%9c%9f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/989764.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u5b9e\u73b0\u65e5\u671f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25064812\/198c2964-0969-43d8-8c9a-b68a522f2f9c.webp\" alt=\"python\u4e2d\u5982\u4f55\u5b9e\u73b0\u65e5\u671f\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5b9e\u73b0\u65e5\u671f\uff0c\u901a\u5e38\u9700\u8981\u4f7f\u7528datetime\u6a21\u5757\u3001time\u6a21\u5757\u3001\u7b2c\u4e09\u65b9\u5e93dateutil\u3001pytz\u7b49\u5de5\u5177\u3002datetime\u6a21\u5757\u662fPython\u5185\u7f6e\u7684\u6a21\u5757\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u65e5\u671f\u548c\u65f6\u95f4\u7684\u64cd\u4f5c\uff0ctime\u6a21\u5757\u5219\u63d0\u4f9b\u4e86\u65f6\u95f4\u76f8\u5173\u7684\u529f\u80fd\uff0cdateutil\u548cpytz\u53ef\u4ee5\u66f4\u597d\u5730\u5904\u7406\u65f6\u533a\u548c\u65e5\u671f\u89e3\u6790\u3002<\/strong> \u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\uff0cdatetime\u6a21\u5757\u662f\u6700\u5e38\u7528\u7684\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u548c\u7b80\u5355\u7684\u63a5\u53e3\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u6765\u5b9e\u73b0\u65e5\u671f\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001DATETIME\u6a21\u5757<\/p>\n<\/p>\n<p><p>datetime\u6a21\u5757\u662fPython\u5185\u7f6e\u7684\u6a21\u5757\uff0c\u4e13\u95e8\u7528\u4e8e\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u3002\u5b83\u63d0\u4f9b\u4e86datetime\u3001date\u3001time\u3001timedelta\u7b49\u7c7b\uff0c\u5141\u8bb8\u6211\u4eec\u521b\u5efa\u3001\u64cd\u4f5c\u548c\u683c\u5f0f\u5316\u65e5\u671f\u548c\u65f6\u95f4\u3002<\/p>\n<\/p>\n<ol>\n<li>\u521b\u5efa\u65e5\u671f\u5bf9\u8c61<\/li>\n<\/ol>\n<p><p>\u8981\u521b\u5efa\u4e00\u4e2a\u65e5\u671f\u5bf9\u8c61\uff0c\u53ef\u4ee5\u4f7f\u7528datetime\u6a21\u5757\u4e2d\u7684date\u7c7b\u3002\u6211\u4eec\u9700\u8981\u63d0\u4f9b\u5e74\u3001\u6708\u3001\u65e5\u4f5c\u4e3a\u53c2\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import date<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u65e5\u671f\u5bf9\u8c61<\/strong><\/h2>\n<p>today = date.today()<\/p>\n<p>print(&quot;Today&#39;s date:&quot;, today)<\/p>\n<p>specific_date = date(2023, 10, 31)<\/p>\n<p>print(&quot;Specific date:&quot;, specific_date)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u521b\u5efa\u65f6\u95f4\u5bf9\u8c61<\/li>\n<\/ol>\n<p><p>\u65f6\u95f4\u5bf9\u8c61\u53ef\u4ee5\u4f7f\u7528datetime\u6a21\u5757\u4e2d\u7684time\u7c7b\u6765\u521b\u5efa\u3002\u6211\u4eec\u9700\u8981\u63d0\u4f9b\u5c0f\u65f6\u3001\u5206\u949f\u3001\u79d2\u548c\u5fae\u79d2\u4f5c\u4e3a\u53c2\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import time<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u65f6\u95f4\u5bf9\u8c61<\/strong><\/h2>\n<p>specific_time = time(15, 30, 45)<\/p>\n<p>print(&quot;Specific time:&quot;, specific_time)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u521b\u5efa\u65e5\u671f\u548c\u65f6\u95f4\u5bf9\u8c61<\/li>\n<\/ol>\n<p><p>\u65e5\u671f\u548c\u65f6\u95f4\u5bf9\u8c61\u53ef\u4ee5\u4f7f\u7528datetime\u7c7b\u6765\u521b\u5efa\u3002\u5b83\u7ed3\u5408\u4e86\u65e5\u671f\u548c\u65f6\u95f4\u7684\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import datetime<\/p>\n<h2><strong>\u83b7\u53d6\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4<\/strong><\/h2>\n<p>now = datetime.now()<\/p>\n<p>print(&quot;Current date and time:&quot;, now)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u7279\u5b9a\u7684\u65e5\u671f\u548c\u65f6\u95f4<\/strong><\/h2>\n<p>specific_datetime = datetime(2023, 10, 31, 15, 30, 45)<\/p>\n<p>print(&quot;Specific date and time:&quot;, specific_datetime)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"4\">\n<li>\u65e5\u671f\u548c\u65f6\u95f4\u7684\u683c\u5f0f\u5316<\/li>\n<\/ol>\n<p><p>datetime\u6a21\u5757\u63d0\u4f9b\u4e86strftime()\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c06\u65e5\u671f\u548c\u65f6\u95f4\u5bf9\u8c61\u683c\u5f0f\u5316\u4e3a\u5b57\u7b26\u4e32\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u683c\u5f0f\u4ee3\u7801\u6765\u5b9e\u73b0\u4e0d\u540c\u7684\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u683c\u5f0f\u5316\u65e5\u671f\u548c\u65f6\u95f4<\/p>\n<p>formatted_date = specific_datetime.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)<\/p>\n<p>print(&quot;Formatted date and time:&quot;, formatted_date)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001TIME\u6a21\u5757<\/p>\n<\/p>\n<p><p>time\u6a21\u5757\u63d0\u4f9b\u4e86\u4e0e\u65f6\u95f4\u76f8\u5173\u7684\u5404\u79cd\u529f\u80fd\uff0c\u5305\u62ec\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\u3001\u8ba1\u7b97\u65f6\u95f4\u5dee\u548c\u6682\u505c\u7a0b\u5e8f\u6267\u884c\u3002<\/p>\n<\/p>\n<ol>\n<li>\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\u6233<\/li>\n<\/ol>\n<p><p>time\u6a21\u5757\u7684time()\u51fd\u6570\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<h2><strong>\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\u6233<\/strong><\/h2>\n<p>current_timestamp = time.time()<\/p>\n<p>print(&quot;Current timestamp:&quot;, current_timestamp)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u65f6\u95f4\u6233\u8f6c\u6362\u4e3a\u65e5\u671f<\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u4f7f\u7528localtime()\u51fd\u6570\u5c06\u65f6\u95f4\u6233\u8f6c\u6362\u4e3astruct_time\u5bf9\u8c61\uff0c\u7136\u540e\u4f7f\u7528strftime()\u51fd\u6570\u683c\u5f0f\u5316\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5c06\u65f6\u95f4\u6233\u8f6c\u6362\u4e3a\u672c\u5730\u65f6\u95f4<\/p>\n<p>local_time = time.localtime(current_timestamp)<\/p>\n<p>formatted_local_time = time.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;, local_time)<\/p>\n<p>print(&quot;Local time:&quot;, formatted_local_time)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u6682\u505c\u7a0b\u5e8f\u6267\u884c<\/li>\n<\/ol>\n<p><p>time\u6a21\u5757\u7684sleep()\u51fd\u6570\u53ef\u4ee5\u6682\u505c\u7a0b\u5e8f\u7684\u6267\u884c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6682\u505c\u7a0b\u5e8f\u6267\u884c3\u79d2<\/p>\n<p>time.sleep(3)<\/p>\n<p>print(&quot;Program resumed after 3 seconds&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001DATEUTIL\u5e93<\/p>\n<\/p>\n<p><p>dateutil\u662f\u4e00\u4e2a\u7b2c\u4e09\u65b9\u5e93\uff0c\u63d0\u4f9b\u4e86\u6bd4\u5185\u7f6e\u6a21\u5757\u66f4\u5f3a\u5927\u7684\u65e5\u671f\u89e3\u6790\u548c\u5904\u7406\u529f\u80fd\u3002\u5b83\u53ef\u4ee5\u8f7b\u677e\u89e3\u6790\u5b57\u7b26\u4e32\u683c\u5f0f\u7684\u65e5\u671f\uff0c\u5e76\u652f\u6301\u65f6\u533a\u8f6c\u6362\u3002<\/p>\n<\/p>\n<ol>\n<li>\u89e3\u6790\u5b57\u7b26\u4e32\u65e5\u671f<\/li>\n<\/ol>\n<p><p>dateutil.parser\u6a21\u5757\u63d0\u4f9b\u4e86parse()\u51fd\u6570\uff0c\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u683c\u5f0f\u7684\u65e5\u671f\u89e3\u6790\u4e3adatetime\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from dateutil import parser<\/p>\n<h2><strong>\u89e3\u6790\u5b57\u7b26\u4e32\u65e5\u671f<\/strong><\/h2>\n<p>date_string = &quot;2023-10-31 15:30:45&quot;<\/p>\n<p>parsed_date = parser.parse(date_string)<\/p>\n<p>print(&quot;Parsed date:&quot;, parsed_date)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u5904\u7406\u65e5\u671f\u504f\u79fb<\/li>\n<\/ol>\n<p><p>dateutil.relativedelta\u6a21\u5757\u63d0\u4f9b\u4e86relativedelta\u7c7b\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u65e5\u671f\u7684\u52a0\u51cf\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from dateutil.relativedelta import relativedelta<\/p>\n<h2><strong>\u8ba1\u7b97\u65e5\u671f\u504f\u79fb<\/strong><\/h2>\n<p>new_date = parsed_date + relativedelta(months=3)<\/p>\n<p>print(&quot;Date after 3 months:&quot;, new_date)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001PYTZ\u5e93<\/p>\n<\/p>\n<p><p>pytz\u662f\u4e00\u4e2a\u7b2c\u4e09\u65b9\u5e93\uff0c\u7528\u4e8e\u5904\u7406\u65f6\u533a\u4fe1\u606f\u3002\u5b83\u53ef\u4ee5\u5c06datetime\u5bf9\u8c61\u8f6c\u6362\u4e3a\u5e26\u6709\u65f6\u533a\u4fe1\u606f\u7684\u5bf9\u8c61\uff0c\u5e76\u652f\u6301\u65f6\u533a\u8f6c\u6362\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5c06UTC\u65f6\u95f4\u8f6c\u6362\u4e3a\u672c\u5730\u65f6\u95f4<\/li>\n<\/ol>\n<p><p>pytz\u5e93\u63d0\u4f9b\u4e86timezone\u7c7b\uff0c\u53ef\u4ee5\u5c06UTC\u65f6\u95f4\u8f6c\u6362\u4e3a\u672c\u5730\u65f6\u95f4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pytz<\/p>\n<h2><strong>\u83b7\u53d6UTC\u65f6\u95f4<\/strong><\/h2>\n<p>utc_time = datetime.utcnow()<\/p>\n<p>print(&quot;UTC time:&quot;, utc_time)<\/p>\n<h2><strong>\u5c06UTC\u65f6\u95f4\u8f6c\u6362\u4e3a\u672c\u5730\u65f6\u95f4<\/strong><\/h2>\n<p>local_timezone = pytz.timezone(&quot;Asia\/Shangh<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>&quot;)<\/p>\n<p>local_time = utc_time.replace(tzinfo=pytz.utc).astimezone(local_timezone)<\/p>\n<p>print(&quot;Local time:&quot;, local_time)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u83b7\u53d6\u6240\u6709\u53ef\u7528\u7684\u65f6\u533a<\/li>\n<\/ol>\n<p><p>pytz\u5e93\u63d0\u4f9b\u4e86all_timezones\u5217\u8868\uff0c\u53ef\u4ee5\u83b7\u53d6\u6240\u6709\u53ef\u7528\u7684\u65f6\u533a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u83b7\u53d6\u6240\u6709\u53ef\u7528\u7684\u65f6\u533a<\/p>\n<p>all_timezones = pytz.all_timezones<\/p>\n<p>print(&quot;Available timezones:&quot;, all_timezones[:10])  # \u53ea\u6253\u5370\u524d10\u4e2a<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\u65e5\u671f\u548c\u65f6\u95f4\u7684\u64cd\u4f5c\uff0c\u6700\u5e38\u7528\u7684\u662fdatetime\u6a21\u5757\u548ctime\u6a21\u5757\u3002datetime\u6a21\u5757\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u521b\u5efa\u3001\u64cd\u4f5c\u548c\u683c\u5f0f\u5316\u65e5\u671f\u548c\u65f6\u95f4\u3002time\u6a21\u5757\u63d0\u4f9b\u4e86\u65f6\u95f4\u6233\u548c\u6682\u505c\u529f\u80fd\u3002\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u65e5\u671f\u89e3\u6790\u548c\u65f6\u533a\u5904\u7406\uff0c\u53ef\u4ee5\u4f7f\u7528dateutil\u548cpytz\u5e93\u3002\u901a\u8fc7\u8fd9\u4e9b\u5de5\u5177\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u5404\u79cd\u65e5\u671f\u548c\u65f6\u95f4\u7684\u64cd\u4f5c\uff0c\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u83b7\u53d6\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>datetime<\/code>\u6a21\u5757\u6765\u83b7\u53d6\u5f53\u524d\u7684\u65e5\u671f\u548c\u65f6\u95f4\u3002\u901a\u8fc7\u5bfc\u5165<code>datetime<\/code>\u6a21\u5757\u5e76\u4f7f\u7528<code>datetime.now()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">import datetime\ncurrent_datetime = datetime.datetime.now()\nprint(&quot;\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4:&quot;, current_datetime)\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u8f93\u51fa\u7cfb\u7edf\u5f53\u524d\u7684\u65e5\u671f\u548c\u65f6\u95f4\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u683c\u5f0f\u5316\u65e5\u671f\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>strftime()<\/code>\u65b9\u6cd5\u5bf9\u65e5\u671f\u8fdb\u884c\u683c\u5f0f\u5316\uff0c\u4ee5\u4fbf\u4ee5\u7279\u5b9a\u7684\u65b9\u5f0f\u663e\u793a\u3002\u6bd4\u5982\uff0c\u60f3\u8981\u5c06\u65e5\u671f\u683c\u5f0f\u5316\u4e3a\u201cYYYY-MM-DD\u201d\u683c\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">formatted_date = current_datetime.strftime(&quot;%Y-%m-%d&quot;)\nprint(&quot;\u683c\u5f0f\u5316\u540e\u7684\u65e5\u671f:&quot;, formatted_date)\n<\/code><\/pre>\n<p>\u8fd9\u91cc\u7684<code>%Y<\/code>\u8868\u793a\u5e74\u4efd\uff0c<code>%m<\/code>\u8868\u793a\u6708\u4efd\uff0c<code>%d<\/code>\u8868\u793a\u65e5\u671f\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5dee\u5f02\uff1f<\/strong><br \/>\u8981\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5dee\u5f02\uff0c\u53ef\u4ee5\u4f7f\u7528<code>datetime<\/code>\u6a21\u5757\u4e2d\u7684<code>date<\/code>\u7c7b\u3002\u901a\u8fc7\u5c06\u4e24\u4e2a<code>date<\/code>\u5bf9\u8c61\u76f8\u51cf\uff0c\u5f97\u5230\u7684\u7ed3\u679c\u662f\u4e00\u4e2a<code>timedelta<\/code>\u5bf9\u8c61\uff0c\u8868\u793a\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5929\u6570\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">from datetime import date\n\ndate1 = date(2023, 10, 1)\ndate2 = date(2023, 10, 15)\ndifference = date2 - date1\nprint(&quot;\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5dee\u5f02\u5929\u6570:&quot;, difference.days)\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u8f93\u51fa\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5929\u6570\u5dee\uff0c\u65b9\u4fbf\u8fdb\u884c\u65e5\u671f\u8ba1\u7b97\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5b9e\u73b0\u65e5\u671f\uff0c\u901a\u5e38\u9700\u8981\u4f7f\u7528datetime\u6a21\u5757\u3001time\u6a21\u5757\u3001\u7b2c\u4e09\u65b9\u5e93dateutil\u3001pytz\u7b49 [&hellip;]","protected":false},"author":3,"featured_media":989773,"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\/989764"}],"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=989764"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/989764\/revisions"}],"predecessor-version":[{"id":989776,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/989764\/revisions\/989776"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/989773"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=989764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=989764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=989764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}